Detect and prevent two nodes with the same Name being on the VPN simultaneously.
In this situation, the two nodes will start fighting over the edges they announced. When we have to contradict both ADD_EDGE and DEL_EDGE messages, we log a warning, and with 25% chance per PingTimeout we quit.
This commit is contained in:
parent
dbf3d168b7
commit
4a21aabada
3 changed files with 19 additions and 0 deletions
|
|
@ -115,6 +115,8 @@ extern bool do_prune;
|
|||
extern bool do_purge;
|
||||
extern char *myport;
|
||||
extern time_t now;
|
||||
extern int contradicting_add_edge;
|
||||
extern int contradicting_del_edge;
|
||||
|
||||
/* Yes, very strange placement indeed, but otherwise the typedefs get all tangled up */
|
||||
#include "connection.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue