Skip to content

Commit

Permalink
Merge pull request #1804 from Crypt-iQ/tor_resolver_fix
Browse files Browse the repository at this point in the history
Revert "reduce redundant memory allocatio - resolves #1699"
  • Loading branch information
Roasbeef committed Mar 30, 2022
2 parents b34e376 + 342f4f8 commit 0742662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connmgr/tor.go
Expand Up @@ -76,7 +76,7 @@ func TorLookupIP(host, proxy string) ([]net.IP, error) {
return nil, ErrTorUnrecognizedAuthMethod
}

buf = make([]byte, 6+len(host))
buf = make([]byte, 7+len(host))
buf[0] = 5 // protocol version
buf[1] = '\xF0' // Tor Resolve
buf[2] = 0 // reserved
Expand Down

0 comments on commit 0742662

Please sign in to comment.