mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 01:40:07 +01:00
Revert "reduce redundant memory allocatio - resolves btcsuite/btcd#1699"
This reverts commit 780cc0889f
.
This commit is contained in:
parent
81fbd9b67e
commit
342f4f8845
@ -76,7 +76,7 @@ func TorLookupIP(host, proxy string) ([]net.IP, error) {
|
|||||||
return nil, ErrTorUnrecognizedAuthMethod
|
return nil, ErrTorUnrecognizedAuthMethod
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = make([]byte, 6+len(host))
|
buf = make([]byte, 7+len(host))
|
||||||
buf[0] = 5 // protocol version
|
buf[0] = 5 // protocol version
|
||||||
buf[1] = '\xF0' // Tor Resolve
|
buf[1] = '\xF0' // Tor Resolve
|
||||||
buf[2] = 0 // reserved
|
buf[2] = 0 // reserved
|
||||||
|
Loading…
Reference in New Issue
Block a user