From d9f1f3533d059627266ddcdb0398b4b32c7158f2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 28 Dec 2006 21:29:20 +0000 Subject: 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 --- src/or/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/config.c') 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) -- cgit v1.2.3-54-g00ecf