X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Froute.c;h=17f1c71a18e13b4f14e988d45e27a4f7f5ef8f16;hp=8c65c4c14c7d2828fdef79740bcda70c432f5147;hb=b23bf132838156d2fe5a18d50a2b5e068ae18ec3;hpb=127f2f99f3d43e0565782750f26f1d3980c72711 diff --git a/src/route.c b/src/route.c index 8c65c4c1..17f1c71a 100644 --- a/src/route.c +++ b/src/route.c @@ -203,7 +203,7 @@ static void age_subnets(void *data) { } for list_each(connection_t, c, connection_list) - if(c->status.active) + if(c->edge) send_del_subnet(c, s); subnet_del(myself, s); @@ -238,7 +238,7 @@ static void learn_mac(mac_t *address) { /* And tell all other tinc daemons it's our MAC */ for list_each(connection_t, c, connection_list) - if(c->status.active) + if(c->edge) send_add_subnet(c, subnet); timeout_add(&age_subnets_timeout, age_subnets, NULL, &(struct timeval){10, rand() % 100000});