diff options
Diffstat (limited to 'src/or/routers.c')
-rw-r--r-- | src/or/routers.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/routers.c b/src/or/routers.c index 5d3a2bb9a3..4e0ab24f86 100644 --- a/src/or/routers.c +++ b/src/or/routers.c @@ -1083,7 +1083,8 @@ int router_compare_to_exit_policy(connection_t *conn) { assert(tmpe->port); log_fn(LOG_DEBUG,"Considering exit policy %s:%s",tmpe->address, tmpe->port); - if(inet_aton(tmpe->address,&in) == 0) { /* malformed IP. reject. */ + if(strcmp(tmpe->address,"*") && + inet_aton(tmpe->address,&in) == 0) { /* malformed IP. reject. */ log_fn(LOG_WARNING,"Malformed IP %s in exit policy. Rejecting.",tmpe->address); return -1; } @@ -1287,8 +1288,6 @@ int router_dump_router_to_string(char *s, int maxlen, routerinfo_t *router, return written+1; } - - /* Local Variables: mode:c |