mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
and another one
svn:r1278
This commit is contained in:
parent
6a2821a7ff
commit
be18884765
@ -376,7 +376,7 @@ static int resolve_my_address(or_options_t *options) {
|
|||||||
}
|
}
|
||||||
assert(rent->h_length == 4);
|
assert(rent->h_length == 4);
|
||||||
memcpy(&in.s_addr, rent->h_addr,rent->h_length);
|
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'. "
|
log_fn(LOG_WARN,"Address '%s' resolves to private IP '%s'. "
|
||||||
"Please set the Address config option to be your public IP.",
|
"Please set the Address config option to be your public IP.",
|
||||||
options->Address, inet_ntoa(in));
|
options->Address, inet_ntoa(in));
|
||||||
|
Loading…
Reference in New Issue
Block a user