X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fgovpn%2Fidentify.go;h=c7675b6368b48cc62e7eef3180e8515ac1421e1b;hb=6b7fb33aa035bc07170811947582a08e5538a9a1;hp=663afe73599bf14b8fc40acf7e2b738c9ae6d7e6;hpb=23594738bb8908bc6b487c6a831509206ba18a91;p=govpn.git diff --git a/src/govpn/identify.go b/src/govpn/identify.go index 663afe7..c7675b6 100644 --- a/src/govpn/identify.go +++ b/src/govpn/identify.go @@ -59,7 +59,6 @@ func (id PeerId) MarshalJSON() ([]byte, error) { type PeerConf struct { Id *PeerId Timeout time.Duration - Noncediff int NoiseEnable bool CPR int // This is passphrase verifier @@ -180,7 +179,7 @@ func (id *PeerId) Conf() *PeerConf { if dummyConf != nil { return dummyConf } - conf := PeerConf{Id: id, Noncediff: 1, NoiseEnable: false, CPR: 0} + conf := PeerConf{Id: id, NoiseEnable: false, CPR: 0} peerPath := path.Join(PeersPath, id.String()) verPath := path.Join(peerPath, "verifier") @@ -207,9 +206,6 @@ func (id *PeerId) Conf() *PeerConf { } conf.Timeout = time.Second * time.Duration(timeout) - if val, err := readIntFromFile(path.Join(peerPath, "noncediff")); err == nil { - conf.Noncediff = val - } if val, err := readIntFromFile(path.Join(peerPath, "noise")); err == nil && val == 1 { conf.NoiseEnable = true }