]> git.meshlink.io Git - meshlink/blobdiff - src/net_setup.c
Remove support for control connections.
[meshlink] / src / net_setup.c
index a4cc2367bfb2cd3757fe7395f38a508d6a2ce364..39e63625231e003e6694a679448f0bcc579bd457 100644 (file)
@@ -25,7 +25,6 @@
 #include "cipher.h"
 #include "conf.h"
 #include "connection.h"
-#include "control.h"
 #include "digest.h"
 #include "ecdsa.h"
 #include "graph.h"
@@ -923,9 +922,6 @@ bool setup_network(void) {
        if(!setup_myself())
                return false;
 
-       if(!init_control())
-               return false;
-
        return true;
 }
 
@@ -936,9 +932,6 @@ void close_network_connections(void) {
        for(list_node_t *node = connection_list->head, *next; node; node = next) {
                next = node->next;
                connection_t *c = node->data;
-               /* Keep control connections open until the end, so they know when we really terminated */
-               if(c->status.control)
-                       c->socket = -1;
                c->outgoing = NULL;
                terminate_connection(c, false);
        }
@@ -965,7 +958,5 @@ void close_network_connections(void) {
 
        if(myport) free(myport);
 
-       exit_control();
-
        return;
 }