]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/govpn/peer.go
Rename NoiseEnable field for simplicity
[govpn.git] / src / govpn / peer.go
index 7219248397a1152a543115260d533e08a2329750..7366ffd642da84cec01a7ec76dc361667286855a 100644 (file)
@@ -123,7 +123,7 @@ func newPeer(isClient bool, addr string, conn io.Writer, conf *PeerConf, key *[S
        timeout := conf.Timeout
 
        cprCycle := cprCycleCalculate(conf.CPR)
-       noiseEnable := conf.NoiseEnable
+       noiseEnable := conf.Noise
        if conf.CPR > 0 {
                noiseEnable = true
                timeout = cprCycle