summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-15 04:00:14 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-15 04:00:14 +0000
commitbe18884765d1e59b3c444679da410d955433116b (patch)
tree0bc6ed31eed6bfc261a8170c752365c0a785d81c
parent6a2821a7ff1781c25dd966825b6e9795bf2b1700 (diff)
downloadtor-be18884765d1e59b3c444679da410d955433116b.tar.gz
tor-be18884765d1e59b3c444679da410d955433116b.zip
and another one
svn:r1278
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
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));