summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-12-28 21:29:20 +0000
committerNick Mathewson <nickm@torproject.org>2006-12-28 21:29:20 +0000
commitd9f1f3533d059627266ddcdb0398b4b32c7158f2 (patch)
treea087dc505639ec0108a087360a489dde56be3f4e /src/or/config.c
parente5f5b96ca6bc35d22478840600c2dfdf2778950f (diff)
downloadtor-d9f1f3533d059627266ddcdb0398b4b32c7158f2.tar.gz
tor-d9f1f3533d059627266ddcdb0398b4b32c7158f2.zip
r11724@Kushana: nickm | 2006-12-28 14:22:35 -0500
Refactor and unify my-ip-addr-changed logic. Make change in IP address or in nameservers reset and relaunch DNS hijacking tests. svn:r9200
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index be22da7374..383ecc62f6 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -976,7 +976,7 @@ options_act(or_options_t *old_options)
log_err(LD_BUG,"Error initializing keys; exiting");
return -1;
}
- server_has_changed_ip();
+ ip_address_changed(0);
if (has_completed_circuit || !any_predicted_circuits(time(NULL)))
inform_testing_reachability();
}
@@ -1908,7 +1908,7 @@ resolve_my_address(int warn_severity, or_options_t *options,
/* Leave this as a notice, regardless of the requested severity,
* at least until dynamic IP address support becomes bulletproof. */
log_notice(LD_NET, "Your IP address seems to have changed. Updating.");
- server_has_changed_ip();
+ ip_address_changed(0);
}
last_resolved_addr = *addr_out;
if (hostname_out)