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
11 changed files with 110 additions and 84 deletions

View File

@@ -457,7 +457,7 @@ func (n *connectionManager) sendPunch(hostinfo *HostInfo) {
}
if n.punchy.GetTargetEverything() {
hostinfo.remotes.ForEach(n.hostMap.preferredRanges, func(addr *udp.Addr, preferred bool) {
hostinfo.remotes.ForEach(n.hostMap.GetPreferredRanges(), func(addr *udp.Addr, preferred bool) {
n.metricsTxPunchy.Inc(1)
n.intf.outside.WriteTo([]byte{1}, addr)
})