diff options
author | Roger Dingledine <arma@torproject.org> | 2004-09-27 06:00:43 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-09-27 06:00:43 +0000 |
commit | a2517b4f0777c961843f3dc65107e9d3ce6b3846 (patch) | |
tree | bb62e7bf322540a7f0db52fd38e77248e46af0ab /src/or/circuituse.c | |
parent | a64d0933396aa2eb52e23c82d4f6ae4f6b237187 (diff) | |
download | tor-a2517b4f0777c961843f3dc65107e9d3ce6b3846.tar tor-a2517b4f0777c961843f3dc65107e9d3ce6b3846.tar.gz |
checking only 0.0.7 and 0.0.8 didn't work, because some dirservers
files have really old descriptors for the authdirservers, so we're
asking them in the new format because they're too old.
now we actually compare the version to a cutoff version, and act
appropriately.
also take this chance to use only >=0.0.8 servers for dns resolves,
because of the recent bugs. we'll bump to >=0.0.9pre1 once there are
some servers running that.
svn:r2380
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 549993a7c..19b9213ee 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -76,10 +76,10 @@ static int circuit_is_acceptable(circuit_t *circ, if (conn->socks_request && conn->socks_request->command == SOCKS_COMMAND_RESOLVE) { - /* 0.0.7 servers and earlier don't support DNS resolution. There are no - * ORs running code before 0.0.7, so we only worry about 0.0.7. Once all - * servers are running 0.0.8, remove this check. */ - if (!strcmpstart(exitrouter->platform, "Tor 0.0.7")) + /* 0.0.7 servers and earlier don't support DNS resolution. 0.0.8 servers + * have buggy resolve support. Once there are more 0.0.9 servers, change + * this to 0.0.9pre1. XXX */ + if (!tor_version_as_new_as(exitrouter->platform, "0.0.8")) return 0; } else if(purpose == CIRCUIT_PURPOSE_C_GENERAL) { if(!connection_ap_can_use_exit(conn, exitrouter)) { |