Launch reachability tests for routers whose IP or ORPort change

Implements #1899, suggested by Sebastian.  Depends on #911 fix.
This commit is contained in:
Nick Mathewson 2010-09-03 10:53:29 -04:00
parent 5926d9cfcc
commit b2473357f2
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
o Minor features
- When a router changes IP or port, authorities now launch a new
reachability test for it. (Implements ticket 1899)

View File

@ -3136,6 +3136,10 @@ dirserv_should_launch_reachability_test(routerinfo_t *ri, routerinfo_t *ri_old)
/* It just came out of hibernation; launch a reachability test */
return 1;
}
if (ri_old->addr != ri->addr || ri_old->or_port != ri->or_port) {
/* Address or port changed; launch a reachability test */
return 1;
}
return 0;
}