X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_edge.c;h=1dd68d5e86c71db1c2df12afdbde59e031d629ad;hp=4aad53f012da36bd16852d945612c4ce6e1fa2f0;hb=a22041922f160667573e9a5ae3f4195e1668906a;hpb=8b70c5be9bc762d81354f9cd77c3748a44a4956d diff --git a/src/protocol_edge.c b/src/protocol_edge.c index 4aad53f0..1dd68d5e 100644 --- a/src/protocol_edge.c +++ b/src/protocol_edge.c @@ -133,6 +133,7 @@ bool add_edge_h(connection_t *c, char *request) { } else if(from == myself) { ifdebug(PROTOCOL) logger(LOG_WARNING, "Got %s from %s (%s) for ourself which does not exist", "ADD_EDGE", c->name, c->hostname); + contradicting_add_edge++; e = new_edge(); e->from = from; e->to = to; @@ -229,6 +230,7 @@ bool del_edge_h(connection_t *c, char *request) { if(e->from == myself) { ifdebug(PROTOCOL) logger(LOG_WARNING, "Got %s from %s (%s) for ourself", "DEL_EDGE", c->name, c->hostname); + contradicting_del_edge++; send_add_edge(c, e); /* Send back a correction */ return true; }