X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fcmd%2Fgovpn-client%2Ftcp.go;h=dd353649ad4db37ee0f2a1b0b673b7e7d71b2a76;hb=c5346a23f86bcc9fd1f8c0925618f137c454d86e;hp=7e2b1a3db9db896d1fcf27b20dbe7ccc0f37db3b;hpb=f70b1fd1695dd840295d9261d40cf17543ccc9b7;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/cmd/govpn-client/tcp.go b/src/cypherpunks.ru/govpn/cmd/govpn-client/tcp.go index 7e2b1a3..dd35364 100644 --- a/src/cypherpunks.ru/govpn/cmd/govpn-client/tcp.go +++ b/src/cypherpunks.ru/govpn/cmd/govpn-client/tcp.go @@ -151,7 +151,7 @@ TransportCycle: timeouted <- struct{}{} break TransportCycle } - if atomic.LoadInt64(&peer.BytesIn)+atomic.LoadInt64(&peer.BytesOut) > govpn.MaxBytesPerKey { + if atomic.LoadUint64(&peer.BytesIn)+atomic.LoadUint64(&peer.BytesOut) > govpn.MaxBytesPerKey { log.Println("Need rehandshake") rehandshaking <- struct{}{} break TransportCycle