mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
Accept OK for confirm of HELLO or ECHO.
This commit is contained in:
parent
f9f60f89d9
commit
781f06ef82
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue