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/connection_or.c | |
parent | a64d0933396aa2eb52e23c82d4f6ae4f6b237187 (diff) | |
download | tor-a2517b4f0777c961843f3dc65107e9d3ce6b3846.tar.gz tor-a2517b4f0777c961843f3dc65107e9d3ce6b3846.zip |
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/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 5272b4a6c6..3f7da96543 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -218,7 +218,7 @@ int connection_tls_start_handshake(connection_t *conn, int receiving) { him = router_get_by_digest(conn->identity_digest); me = router_get_my_routerinfo(); - if(him && !strcmpstart(him->platform, "Tor 0.0.7") && + if(him && !tor_version_as_new_as(him->platform, "0.0.8pre1") && (!me || !me->is_verified)) { log_fn(LOG_INFO,"He's running 0.0.7, and I'm unverified. Acting like OP."); use_no_cert = 1; |