]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Remove support for Subnets.
[meshlink] / src / protocol_auth.c
index 551bff60a70c02c07746eab5107c2a8484c0420f..a1395b715e0169f2defb668338ac7fe28bb5ab69 100644 (file)
@@ -678,6 +678,7 @@ bool send_ack(connection_t *c) {
 static void send_everything(connection_t *c) {
        /* Send all known subnets and edges */
 
+       // TODO: remove this
        if(disablebuggypeers) {
                static struct {
                        vpn_packet_t pkt;
@@ -689,17 +690,7 @@ static void send_everything(connection_t *c) {
                send_tcppacket(c, &zeropkt.pkt);
        }
 
-       if(tunnelserver) {
-               for splay_each(subnet_t, s, myself->subnet_tree)
-                       send_add_subnet(c, s);
-
-               return;
-       }
-
        for splay_each(node_t, n, node_tree) {
-               for splay_each(subnet_t, s, n->subnet_tree)
-                       send_add_subnet(c, s);
-
                for splay_each(edge_t, e, n->edge_tree)
                        send_add_edge(c, e);
        }