X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fclient%2Fclient.go;h=76635a88ec9a9e84e8b456e53943e4cc518a08da;hp=8e796f77e4c4249a11d9c9edf888e68f83a23b03;hb=6389874fdb1a6a909cbd8a52d93eb5215bd38503;hpb=6bf20f1c34d1d6e4f93818a19cb7fe20f0e966c4 diff --git a/src/cypherpunks.ru/govpn/client/client.go b/src/cypherpunks.ru/govpn/client/client.go index 8e796f7..76635a8 100644 --- a/src/cypherpunks.ru/govpn/client/client.go +++ b/src/cypherpunks.ru/govpn/client/client.go @@ -129,7 +129,7 @@ MainCycle: } func NewClient(conf Configuration, verifier *govpn.Verifier, termSignal chan os.Signal) *Client { - client := &Client{ + client := Client{ idsCache: govpn.NewMACCache(), firstUpCall: true, config: conf, @@ -138,5 +138,5 @@ func NewClient(conf Configuration, verifier *govpn.Verifier, termSignal chan os. } confs := map[govpn.PeerId]*govpn.PeerConf{*verifier.Id: conf.Peer} client.idsCache.Update(&confs) - return client + return &client }