mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-06 02:30:57 -08:00
feedback
This commit is contained in:
parent
0c3c0c953a
commit
f034caa265
1 changed files with 2 additions and 1 deletions
|
|
@ -374,7 +374,8 @@ func (r *RemoteList) CopyBlockedRemotes() []netip.AddrPort {
|
|||
func (r *RemoteList) RefreshFromHandshake(vpnAddrs []netip.Addr) {
|
||||
r.Lock()
|
||||
r.badRemotes = nil
|
||||
r.vpnAddrs = vpnAddrs //should this be remade and copied, a-la NewRemoteList?
|
||||
r.vpnAddrs = make([]netip.Addr, len(vpnAddrs))
|
||||
copy(r.vpnAddrs, vpnAddrs)
|
||||
r.Unlock()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue