if (!is_local_IP(circ->p_conn->addr)) {
/* record that we could process create cells; presumably this means
that create cells can reach us too. */
- log_fn(LOG_NOTICE,"Your ORPort is reachable from the outside. Excellent.");
router_orport_found_reachable();
}
if (identity_digest) { /* if this is us, then our dirport is reachable */
routerinfo_t *router = router_get_by_digest(identity_digest);
if (!router) // XXX
- log_fn(LOG_WARN,"Roger, router_get_by_digest doesn't find me.");
+ log_fn(LOG_WARN,"Bug: router_get_by_digest doesn't find me.");
if (router && router_is_me(router)) {
- log_fn(LOG_NOTICE,"Your DirPort is reachable from the outside. Excellent.");
router_dirport_found_reachable();
}
}
/** Annotate that we found our ORPort reachable. */
void router_orport_found_reachable(void) {
- can_reach_or_port = 1;
+ if (!can_reach_or_port) {
+ log_fn(LOG_NOTICE,"Your ORPort is reachable from the outside. Excellent.");
+ can_reach_or_port = 1;
+ }
}
/** Annotate that we found our DirPort reachable. */
void router_dirport_found_reachable(void) {
- can_reach_dir_port = 1;
+ if (!can_reach_dir_port) {
+ log_fn(LOG_NOTICE,"Your DirPort is reachable from the outside. Excellent.");
+ can_reach_dir_port = 1;
+ }
}
/** Our router has just moved to a new IP. Reset stats. */