if err != nil {
log.Fatalln("Unable to decode the key:", err.Error(), pc.VerifierRaw)
}
- if pc.EncLess {
+ if pc.Encless {
pc.Noise = true
}
+ if pc.MTU == 0 {
+ pc.MTU = govpn.MTUDefault
+ }
conf := govpn.PeerConf{
Verifier: verifier,
Id: verifier.Id,
Name: name,
+ Iface: pc.Iface,
+ MTU: pc.MTU,
Up: pc.Up,
Down: pc.Down,
Noise: pc.Noise,
CPR: pc.CPR,
- EncLess: pc.EncLess,
+ Encless: pc.Encless,
}
if pc.TimeoutInt <= 0 {
pc.TimeoutInt = govpn.TimeoutDefault