stop issueing tor NEWNYM commands on errrors on open()
This commit is contained in:
parent
8db3c09fce
commit
bf57db657a
|
@ -169,12 +169,6 @@ func (tp *torProvider) Open(hostname string) (net.Conn, string, error) {
|
|||
}
|
||||
|
||||
conn, err := torDailer.Dial("tcp", resolvedHostname+".onion:9878")
|
||||
// if there was an error, we may have been cycling too fast
|
||||
// clear the tor cache and try one more time
|
||||
if err != nil {
|
||||
tp.t.Control.Signal("NEWNYM")
|
||||
conn, err = torDailer.Dial("tcp", resolvedHostname+".onion:9878")
|
||||
}
|
||||
return conn, resolvedHostname, err
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue