X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fpeer_test.go;h=6c16469f18c008298918d43f34e902fd965dacec;hb=f47fff1e42f75b736e7067ec06c2e81394833d46;hp=18bd5feada92d165033b0b8da0336b834f08822d;hpb=21dee974626eb44b6c3904621dea946fef7e17fc;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/peer_test.go b/src/cypherpunks.ru/govpn/peer_test.go index 18bd5fe..6c16469 100644 --- a/src/cypherpunks.ru/govpn/peer_test.go +++ b/src/cypherpunks.ru/govpn/peer_test.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 @@ -28,7 +28,7 @@ var ( testPeer *Peer testPt []byte testCt []byte - testPeerId PeerId + testPeerID PeerID testConf *PeerConf ) @@ -45,9 +45,9 @@ func (d Dummy) Write(b []byte) (int, error) { func init() { id := new([IDSize]byte) - testPeerId = PeerId(*id) + testPeerID = PeerID(*id) testConf = &PeerConf{ - Id: &testPeerId, + ID: &testPeerID, MTU: MTUDefault, Timeout: time.Second * time.Duration(TimeoutDefault), }