Support reloading preferred_ranges (#1043)

This commit is contained in:
Nate Brown 2024-04-03 22:14:51 -05:00 committed by GitHub
parent bbb15f8cb1
commit a390125935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 110 additions and 84 deletions

View file

@ -145,7 +145,7 @@ func (c *Control) GetHostInfoByVpnIp(vpnIp iputil.VpnIp, pending bool) *ControlH
return nil
}
ch := copyHostInfo(h, c.f.hostMap.preferredRanges)
ch := copyHostInfo(h, c.f.hostMap.GetPreferredRanges())
return &ch
}
@ -157,7 +157,7 @@ func (c *Control) SetRemoteForTunnel(vpnIp iputil.VpnIp, addr udp.Addr) *Control
}
hostInfo.SetRemote(addr.Copy())
ch := copyHostInfo(hostInfo, c.f.hostMap.preferredRanges)
ch := copyHostInfo(hostInfo, c.f.hostMap.GetPreferredRanges())
return &ch
}