X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fclient%2Fclient.go;h=7e6ea35d8c9d416bcb71c12248a87f1dad85d7cc;hb=572cac17bde738055312f7a468a0bde0e760a262;hp=093251dbaa8781416a1f9cd9b049bd40af081d5b;hpb=ab42bfd6e2ad37e8078b416a76cf23dd099f821f;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/client/client.go b/src/cypherpunks.ru/govpn/client/client.go index 093251d..7e6ea35 100644 --- a/src/cypherpunks.ru/govpn/client/client.go +++ b/src/cypherpunks.ru/govpn/client/client.go @@ -1,6 +1,6 @@ /* GoVPN -- simple secure free software virtual private network daemon -Copyright (C) 2014-2016 Sergey Matveev +Copyright (C) 2014-2017 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 @@ -30,7 +30,7 @@ import ( "cypherpunks.ru/govpn" ) -type Protocol uint8 +type Protocol int const ( ProtocolUDP Protocol = iota @@ -129,7 +129,7 @@ MainCycle: if c.config.NoReconnect { break MainCycle } - govpn.BothPrintf(`[sleep seconds="%d"]`, c.config.Peer.Timeout) + govpn.BothPrintf(`[sleep seconds="%d"]`, c.config.Peer.Timeout/time.Second) time.Sleep(c.config.Peer.Timeout) case <-c.rehandshaking: }