made supernode ignore own registration attempts to allow unified configuration (command line-provided supernodes) of federated supernodes (#970)

This commit is contained in:
Logan oos Even 2022-03-20 12:48:40 +01:00 committed by GitHub
parent 73d0d76f29
commit 5f60a6b333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1938,6 +1938,11 @@ static int process_udp (n2n_sn_t * sss,
}
}
if(!memcmp(reg.edgeMac, sss->mac_addr, sizeof(n2n_mac_t))) {
traceEvent(TRACE_DEBUG, "Rx REGISTER_SUPER from self, ignoring");
return -1;
}
cmn2.ttl = N2N_DEFAULT_TTL;
cmn2.pc = n2n_register_super_ack;
cmn2.flags = N2N_FLAGS_SOCKET | N2N_FLAGS_FROM_SUPERNODE;