diff --git a/handshake_ix.go b/handshake_ix.go index 813c68d..f7cf031 100644 --- a/handshake_ix.go +++ b/handshake_ix.go @@ -350,9 +350,7 @@ func ixHandshakeStage2(f *Interface, addr *udpAddr, hostinfo *HostInfo, packet [ ci.eKey = NewNebulaCipherState(eKey) //l.Debugln("got symmetric pairs") - //hostinfo.ClearRemotes() - hostinfo.AddRemote(*addr) - hostinfo.ForcePromoteBest(f.hostMap.preferredRanges) + hostinfo.SetRemote(*addr) hostinfo.CreateRemoteCIDR(remoteCert) f.handshakeManager.Complete(hostinfo, f)