mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-07 15:26:01 +08:00
err fix
This commit is contained in:
parent
1d95534e5a
commit
aec456f732
1 changed files with 4 additions and 2 deletions
|
|
@ -244,9 +244,11 @@ func SetWGConfig(network string, peerupdate bool, peers []wgtypes.PeerConfig) er
|
|||
return err
|
||||
}
|
||||
}
|
||||
SetPeers(iface, &cfg.Node, peers)
|
||||
err = SetPeers(iface, &cfg.Node, peers)
|
||||
} else {
|
||||
err = InitWireguard(&cfg.Node, privkey, peers)
|
||||
}
|
||||
return InitWireguard(&cfg.Node, privkey, peers)
|
||||
return err
|
||||
}
|
||||
|
||||
// RemoveConf - removes a configuration for a given WireGuard interface
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue