From be18884765d1e59b3c444679da410d955433116b Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 15 Mar 2004 04:00:14 +0000 Subject: [PATCH] and another one svn:r1278 --- src/or/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/config.c b/src/or/config.c index e06a22a3fd..8b73003106 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -376,7 +376,7 @@ static int resolve_my_address(or_options_t *options) { } assert(rent->h_length == 4); memcpy(&in.s_addr, rent->h_addr,rent->h_length); - if(is_internal_IP(in.s_addr)) { + if(is_internal_IP(htonl(in.s_addr))) { log_fn(LOG_WARN,"Address '%s' resolves to private IP '%s'. " "Please set the Address config option to be your public IP.", options->Address, inet_ntoa(in));