mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Fix minor semantic error with no real effect:
we were doing "is_internal_IP(htonl(in.s_addr))" but in.s_addr is in network order and is_internal_IP wants host order. Change to "is_internal_IP(ntohl(in.s_addr))". svn:r6155
This commit is contained in:
parent
c61ce09649
commit
ebfb3fea6d
@ -1566,7 +1566,7 @@ resolve_my_address(or_options_t *options, uint32_t *addr_out,
|
||||
}
|
||||
|
||||
tor_inet_ntoa(&in,tmpbuf,sizeof(tmpbuf));
|
||||
if (is_internal_IP(htonl(in.s_addr), 0) &&
|
||||
if (is_internal_IP(ntohl(in.s_addr), 0) &&
|
||||
options->PublishServerDescriptor) {
|
||||
/* make sure we're ok with publishing an internal IP */
|
||||
if (!options->DirServers) {
|
||||
|
Loading…
Reference in New Issue
Block a user