mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-16 22:28:17 +00:00
Accept OK for confirm of HELLO or ECHO.
This commit is contained in:
@ -101,9 +101,9 @@ void Peer::received(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!pathIsConfirmed) {
|
if (!pathIsConfirmed) {
|
||||||
if ((verb == Packet::VERB_OK)&&(inReVerb == Packet::VERB_HELLO)) {
|
if ((verb == Packet::VERB_OK)&&((inReVerb == Packet::VERB_HELLO)||(inReVerb == Packet::VERB_ECHO))) {
|
||||||
|
|
||||||
// Learn paths if they've been confirmed via a HELLO
|
// Learn paths if they've been confirmed via a HELLO or an ECHO
|
||||||
RemotePath *slot = (RemotePath *)0;
|
RemotePath *slot = (RemotePath *)0;
|
||||||
if (np < ZT_MAX_PEER_NETWORK_PATHS) {
|
if (np < ZT_MAX_PEER_NETWORK_PATHS) {
|
||||||
// Add new path
|
// Add new path
|
||||||
|
Reference in New Issue
Block a user