We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 018a6ba commit bd0a1aeCopy full SHA for bd0a1ae
adapters/shadowsocks.go
@@ -93,13 +93,13 @@ func serializesSocksAddr(addr *C.Addr) []byte {
93
case socks.AtypDomainName:
94
len := uint8(len(addr.Host))
95
host := []byte(addr.Host)
96
- buf = [][]byte{[]byte{aType, len}, host, port}
+ buf = [][]byte{{aType, len}, host, port}
97
case socks.AtypIPv4:
98
host := addr.IP.To4()
99
- buf = [][]byte{[]byte{aType}, host, port}
+ buf = [][]byte{{aType}, host, port}
100
case socks.AtypIPv6:
101
host := addr.IP.To16()
102
103
}
104
return bytes.Join(buf, []byte(""))
105
0 commit comments