Refactor: Shadowsocks & Trojan UDP FullCone NAT

https://t.me/projectXray/95704
This commit is contained in:
RPRX 2020-12-23 13:06:21 +00:00 committed by GitHub
parent 4140ed7ab0
commit 8f8f7dd66f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 234 additions and 44 deletions

View file

@ -2,6 +2,7 @@ package buf
import (
"io"
"net"
"github.com/xtls/xray-core/common/bytespool"
)
@ -20,6 +21,7 @@ type Buffer struct {
v []byte
start int32
end int32
UDP *net.UDPAddr
}
// New creates a Buffer with 0 length and 2K capacity.