mirror of
https://github.com/nadoo/glider.git
synced 2025-04-21 19:52:07 +08:00
fix: the ip should be 'To4'
This commit is contained in:
parent
121f3680e2
commit
74215066aa
@ -132,7 +132,7 @@ func (s *SOCKS4) connect(conn net.Conn, target string) error {
|
|||||||
if s.socks4a {
|
if s.socks4a {
|
||||||
// The client should set the first three bytes of DSTIP to NULL
|
// The client should set the first three bytes of DSTIP to NULL
|
||||||
// and the last byte to a non-zero value.
|
// and the last byte to a non-zero value.
|
||||||
ip = net.ParseIP("0.0.0.1")
|
ip = []byte{0, 0, 0, 1}
|
||||||
bufSize += len(host) + 1
|
bufSize += len(host) + 1
|
||||||
} else {
|
} else {
|
||||||
ip, err = s.lookupIP(host)
|
ip, err = s.lookupIP(host)
|
||||||
|
Loading…
Reference in New Issue
Block a user