/*
GoVPN -- simple secure free software virtual private network daemon
-Copyright (C) 2014-2015 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2016 Sergey Matveev <stargrave@stargrave.org>
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
if err != nil {
log.Fatalln("Unable to decode the key:", err.Error(), pc.VerifierRaw)
}
+ if pc.EncLess {
+ pc.Noise = true
+ }
conf := govpn.PeerConf{
Verifier: verifier,
Id: verifier.Id,
Name: name,
+ Iface: pc.Iface,
Up: pc.Up,
Down: pc.Down,
Noise: pc.Noise,
CPR: pc.CPR,
+ EncLess: pc.EncLess,
}
if pc.TimeoutInt <= 0 {
pc.TimeoutInt = govpn.TimeoutDefault