X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcypherpunks.ru%2Fgovpn%2Fclient%2Ftcp.go;fp=src%2Fcypherpunks.ru%2Fgovpn%2Fclient%2Ftcp.go;h=4bb7a5fd4856390f812045da4b03bd831270709d;hb=c982ccb214ba8d0fd8a30dee7439ea2db1559f6f;hp=40d81ca818081789c3a9f87ac4e4a2f063c63a76;hpb=b772182c156a0eab0798d12ca196610ac736035e;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/client/tcp.go b/src/cypherpunks.ru/govpn/client/tcp.go index 40d81ca..4bb7a5f 100644 --- a/src/cypherpunks.ru/govpn/client/tcp.go +++ b/src/cypherpunks.ru/govpn/client/tcp.go @@ -86,7 +86,7 @@ HandshakeCycle: continue } govpn.Printf(`[handshake-completed remote="%s"]`, c.config.RemoteAddress) - c.knownPeers = govpn.KnownPeers(map[string]**govpn.Peer{c.config.RemoteAddress: &peer}) + c.knownPeers.Store(c.config.RemoteAddress, &peer) if c.firstUpCall { go govpn.ScriptCall(c.config.UpPath, c.config.InterfaceName, c.config.RemoteAddress) c.firstUpCall = false