aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-05 12:44:40 -0500
committerNick Mathewson <nickm@torproject.org>2014-03-05 12:44:40 -0500
commitf0b2dc83b60b0de1644ce9fb5e19fef516e9ffde (patch)
treeee8e9b36590f7cb2f349aa25eeb1abd33e20a7b1 /src/or/main.c
parent12954908623a285606ec7522168cd2ac7e799525 (diff)
parent74e6a47a808803c985f55b626dff294dbe425043 (diff)
downloadtor-f0b2dc83b60b0de1644ce9fb5e19fef516e9ffde.tar.gz
tor-f0b2dc83b60b0de1644ce9fb5e19fef516e9ffde.zip
Merge remote-tracking branch 'arma/ticket5528'
Conflicts: src/or/router.c src/test/test_dir.c
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/or/main.c b/src/or/main.c
index b0529cde8a..7294c8955a 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1670,24 +1670,28 @@ second_elapsed_callback(periodic_timer_t *timer, void *arg)
/* every 20 minutes, check and complain if necessary */
const routerinfo_t *me = router_get_my_routerinfo();
if (me && !check_whether_orport_reachable()) {
+ char *address = tor_dup_ip(me->addr);
log_warn(LD_CONFIG,"Your server (%s:%d) has not managed to confirm that "
"its ORPort is reachable. Please check your firewalls, ports, "
"address, /etc/hosts file, etc.",
- me->address, me->or_port);
+ address, me->or_port);
control_event_server_status(LOG_WARN,
"REACHABILITY_FAILED ORADDRESS=%s:%d",
- me->address, me->or_port);
+ address, me->or_port);
+ tor_free(address);
}
if (me && !check_whether_dirport_reachable()) {
+ char *address = tor_dup_ip(me->addr);
log_warn(LD_CONFIG,
"Your server (%s:%d) has not managed to confirm that its "
"DirPort is reachable. Please check your firewalls, ports, "
"address, /etc/hosts file, etc.",
- me->address, me->dir_port);
+ address, me->dir_port);
control_event_server_status(LOG_WARN,
"REACHABILITY_FAILED DIRADDRESS=%s:%d",
- me->address, me->dir_port);
+ address, me->dir_port);
+ tor_free(address);
}
}