Don't set up an ongoing connection to myself.
[tinc] / src / net_socket.c
index 3bf7d75..526d382 100644 (file)
@@ -800,6 +800,11 @@ void try_outgoing_connections(void) {
                        continue;
                }
 
+               if(!strcmp(name, myself->name)) {
+                       free(name);
+                       continue;
+               }
+
                bool found = false;
 
                for list_each(outgoing_t, outgoing, outgoing_list) {