mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
make normal exit nodes less likely to crash from the conn-munging bug
but leave dirservers just as likely to crash svn:r1363
This commit is contained in:
parent
6a79b1cb57
commit
0edf0ea7cc
@ -113,14 +113,15 @@ int dns_resolve(connection_t *exitconn) {
|
||||
uint32_t now = time(NULL);
|
||||
assert_connection_ok(exitconn, 0);
|
||||
|
||||
#if 0 /* only enable this once we've found the conn-munging bug */
|
||||
/* XXX leave disabled for dirservers so we can find the conn-munging bug */
|
||||
if(!options.DirPort) {
|
||||
/* first check if exitconn->address is an IP. If so, we already
|
||||
* know the answer. */
|
||||
if (tor_inet_aton(exitconn->address, &in) != 0) {
|
||||
exitconn->addr = ntohl(in.s_addr);
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* then take this opportunity to see if there are any expired
|
||||
* resolves in the tree. */
|
||||
|
Loading…
Reference in New Issue
Block a user