mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
trojan: added udp support
This commit is contained in:
1 parent
2520a1c8b4
commit
bfcf9272dc
6 files changed
+138
-66
No files matched your search
+7
-11
@@ -13,26 +13,22 @@ const (
|
||||
AuthPassword = 2
|
||||
)
|
||||
|
||||
// SOCKS request commands as defined in RFC 1928 section 4.
|
||||
// SOCKS request commands as defined in RFC 1928 section 4
|
||||
const (
|
||||
CmdConnect = 1
|
||||
CmdBind = 2
|
||||
CmdUDPAssociate = 3
|
||||
CmdConnect byte = 1
|
||||
CmdBind byte = 2
|
||||
CmdUDPAssociate byte = 3
|
||||
)
|
||||
|
||||
// SOCKS address types as defined in RFC 1928 section 5.
|
||||
// SOCKS address types as defined in RFC 1928 section 5
|
||||
const (
|
||||
ATypIP4 = 1
|
||||
ATypDomain = 3
|
||||
ATypIP6 = 4
|
||||
)
|
||||
|
||||
const (
|
||||
// maximum size of SOCKS address in bytes.
|
||||
MaxAddrLen = 1 + 1 + 255 + 2
|
||||
// minimum size of SOCKS address in bytes.
|
||||
MinAddrLen = 5
|
||||
)
|
||||
// MaxAddrLen is the maximum size of SOCKS address in bytes
|
||||
const MaxAddrLen = 1 + 1 + 255 + 2
|
||||
|
||||
// Errors are socks5 errors
|
||||
var Errors = []error{
|
||||
|
||||
Reference in new issue
Block a user