[PATCH 2/2] setup_outgoing_connection: log to LOG_DEBUG on if no known address
Florian Klink
flokli at flokli.de
Thu Jul 2 12:35:42 CEST 2015
With AutoConnect = yes, tinc tries to establish connections to known hosts.
However, you could have set no Address for this host, which is perfectly fine
(as long as there is at least one bootstrap node with an address or a local
discovered node already part of the network)
So log this to LOG_DEBUG
---
src/net_socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/net_socket.c b/src/net_socket.c
index 526d382..97d6c44 100644
--- a/src/net_socket.c
+++ b/src/net_socket.c
@@ -617,7 +617,7 @@ void setup_outgoing_connection(outgoing_t *outgoing) {
if(n)
outgoing->aip = outgoing->ai = get_known_addresses(n);
if(!outgoing->ai) {
- logger(DEBUG_ALWAYS, LOG_ERR, "No address known for %s", outgoing->name);
+ logger(DEBUG_ALWAYS, LOG_DEBUG, "No address known for %s", outgoing->name);
return;
}
}
--
2.4.4
More information about the tinc-devel
mailing list