X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fclient%2Fclient.go;h=093251dbaa8781416a1f9cd9b049bd40af081d5b;hb=ab42bfd6e2ad37e8078b416a76cf23dd099f821f;hp=8e796f77e4c4249a11d9c9edf888e68f83a23b03;hpb=6bf20f1c34d1d6e4f93818a19cb7fe20f0e966c4;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/client/client.go b/src/cypherpunks.ru/govpn/client/client.go index 8e796f7..093251d 100644 --- a/src/cypherpunks.ru/govpn/client/client.go +++ b/src/cypherpunks.ru/govpn/client/client.go @@ -1,3 +1,21 @@ +/* +GoVPN -- simple secure free software virtual private network daemon +Copyright (C) 2014-2016 Sergey Matveev + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + package client import ( @@ -129,7 +147,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 +156,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 }