}
var (
- handshakes map[string]*govpn.Handshake = make(map[string]*govpn.Handshake)
- hsLock sync.RWMutex
-
- peers = make(map[string]*PeerState)
- peersLock sync.RWMutex
-
- peersByID = make(map[govpn.PeerID]string)
- peersByIDLock sync.RWMutex
-
- knownPeers govpn.KnownPeers
- kpLock sync.RWMutex
+ handshakes sync.Map
+ peers sync.Map
+ peersByID sync.Map
+ knownPeers sync.Map
)
func callUp(peerID *govpn.PeerID, remoteAddr string) (string, error) {