setup_outgoing_connection: log to LOG_DEBUG on if no known address
authorFlorian Klink <flokli@flokli.de>
Thu, 2 Jul 2015 10:35:42 +0000 (12:35 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 2 Jul 2015 19:22:53 +0000 (21:22 +0200)
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

index 526d382a41d37d24ae8a718e95c21fbebd52fc9c..97d6c448265ce62a03c5707045897e6ce917c901 100644 (file)
@@ -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;
                }
        }