summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors7r <s7r@sky-ip.org>2016-08-15 09:50:10 +0000
committerGitHub <noreply@github.com>2016-08-15 09:50:10 +0000
commit4d2b3164ec922916d01d6772ef86b7041e7c7d78 (patch)
tree2b758de9ceff4bf4b5533c16079a9038cf8bb78d
parentc75bf388b5fc3555dd21d44b7856358f771292a4 (diff)
downloadtor-4d2b3164ec922916d01d6772ef86b7041e7c7d78.tar.gz
tor-4d2b3164ec922916d01d6772ef86b7041e7c7d78.zip
Make log message clearer
Longer and more explicit log message so we don't confuse users with behind NAT with working configurations and state that public IP addresses only should be provided with "Address", won't work with internal addresses.
-rw-r--r--src/or/router.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/or/router.c b/src/or/router.c
index d48bd05d98..c6bbafb95f 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1947,8 +1947,13 @@ router_check_descriptor_address_consistency(uint32_t ipv4h_desc_addr)
log_warn(LD_CONFIG, "The configured IPv4 ORPort address %s does not "
"match the address %s in the descriptor. Please configure "
- "matching IPv4 addresses for the Address and ORPort options. "
- "Use NoListen on the ORPort if you are behind a NAT.",
+ "the matching IPv4 addresses for this Tor relay as "
+ "Address <IPv4 address> in the torrc configuration file if "
+ "you have multiple public IP addresses. If you are behind a "
+ "NAT and have the right ports forwarded, you can ignore this "
+ "warning or, to remove it, use 2 ORPort lines with options "
+ "NoListen (for the public IPv4 address line) and NoAdvertise "
+ "(for the internal NAT IPv4 address line).",
port_addr_str, desc_addr_str);
}
@@ -1969,8 +1974,13 @@ router_check_descriptor_address_consistency(uint32_t ipv4h_desc_addr)
log_warn(LD_CONFIG, "The configured IPv4 DirPort address %s does not "
"match the address %s in the descriptor. Please configure "
- "matching IPv4 addresses for the Address and DirPort options. "
- "Use NoListen on the DirPort if you are behind a NAT.",
+ "the matching IPv4 addresses for this Tor relay as "
+ "Address <IPv4 address> in the torrc configuration file if "
+ "you have multiple public IP addresses. If you are behind a "
+ "NAT and have the right ports forwarded, you can ignore this "
+ "warning or, to remove it, use 2 DirPort lines with options "
+ "NoListen (for the public IPv4 address line) and NoAdvertise "
+ "(for the internal NAT IPv4 address line).",
port_addr_str, desc_addr_str);
}
}