diff --git a/connmgr/tor.go b/connmgr/tor.go index 2b22ae51f2..a2e512dba1 100644 --- a/connmgr/tor.go +++ b/connmgr/tor.go @@ -76,7 +76,7 @@ func TorLookupIP(host, proxy string) ([]net.IP, error) { return nil, ErrTorUnrecognizedAuthMethod } - buf = make([]byte, 7+len(host)) + buf = make([]byte, 6+len(host)) buf[0] = 5 // protocol version buf[1] = '\xF0' // Tor Resolve buf[2] = 0 // reserved