mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Say private address instead of internal address.
Both are wrong or at least not entirely correct but nobody would understand "special-use address as listed in RFC3330" I guess. svn:r6236
This commit is contained in:
parent
f2abd7a69b
commit
e90bebf27b
@ -1605,8 +1605,8 @@ resolve_my_address(or_options_t *options, uint32_t *addr_out,
|
|||||||
uint32_t interface_ip;
|
uint32_t interface_ip;
|
||||||
|
|
||||||
tor_inet_ntoa(&in,tmpbuf,sizeof(tmpbuf));
|
tor_inet_ntoa(&in,tmpbuf,sizeof(tmpbuf));
|
||||||
log_notice(LD_CONFIG, "Guessed local hostname '%s' resolves to an "
|
log_notice(LD_CONFIG, "Guessed local hostname '%s' resolves to a "
|
||||||
"internal IP address (%s). Trying something else.", hostname,
|
"private IP address (%s). Trying something else.", hostname,
|
||||||
tmpbuf);
|
tmpbuf);
|
||||||
|
|
||||||
if (get_interface_address(&interface_ip)) {
|
if (get_interface_address(&interface_ip)) {
|
||||||
@ -1616,7 +1616,7 @@ resolve_my_address(or_options_t *options, uint32_t *addr_out,
|
|||||||
struct in_addr in2;
|
struct in_addr in2;
|
||||||
in2.s_addr = htonl(interface_ip);
|
in2.s_addr = htonl(interface_ip);
|
||||||
tor_inet_ntoa(&in2,tmpbuf,sizeof(tmpbuf));
|
tor_inet_ntoa(&in2,tmpbuf,sizeof(tmpbuf));
|
||||||
log_notice(LD_CONFIG, "Interface IP '%s' is an internal address "
|
log_notice(LD_CONFIG, "Interface IP '%s' is a private address "
|
||||||
"too. Ignoring.", tmpbuf);
|
"too. Ignoring.", tmpbuf);
|
||||||
} else {
|
} else {
|
||||||
in.s_addr = htonl(interface_ip);
|
in.s_addr = htonl(interface_ip);
|
||||||
|
Loading…
Reference in New Issue
Block a user