mirror of https://github.com/slackhq/nebula.git
fix roaming check
We need to compare just the IPs here and not the IP+Port
This is a regression with the merge of v1.9.4 and the change to
netip.AddrPort
- dabce8a1b4
This commit is contained in:
parent
dabce8a1b4
commit
7ac51c1af2
|
@ -268,7 +268,7 @@ func (f *Interface) handleHostRoaming(hostinfo *HostInfo, ip netip.AddrPort) {
|
||||||
if hostinfo.multiportRx {
|
if hostinfo.multiportRx {
|
||||||
// If the remote is sending with multiport, we aren't roaming unless
|
// If the remote is sending with multiport, we aren't roaming unless
|
||||||
// the IP has changed
|
// the IP has changed
|
||||||
if hostinfo.remote.Compare(ip) == 0 {
|
if hostinfo.remote.Addr().Compare(ip.Addr()) == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Keep the port from the original hostinfo, because the remote is transmitting from multiport ports
|
// Keep the port from the original hostinfo, because the remote is transmitting from multiport ports
|
||||||
|
|
Loading…
Reference in New Issue