aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-14 22:19:00 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-14 22:19:00 -0400
commitf5b7e039f39d881fc8f48c2e6004e605ca0e24c1 (patch)
treea14686a165f09e6751e9baeea420c016b42b7e1e /src/or/dirserv.c
parentb2473357f214a5459b4d6e166150bd6cb1ac2873 (diff)
downloadtor-f5b7e039f39d881fc8f48c2e6004e605ca0e24c1.tar
tor-f5b7e039f39d881fc8f48c2e6004e605ca0e24c1.tar.gz
Extract the "do these routers have the same addr:orport" logic into a fn
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index b5c33739b..cfee498bd 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3136,7 +3136,7 @@ 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) {
+ if (! routers_have_same_or_addr(ri, ri_old)) {
/* Address or port changed; launch a reachability test */
return 1;
}