mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-10 00:30:37 +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
|
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
|
// RemoveConf - removes a configuration for a given WireGuard interface
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue