mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-25 16:44:01 +08:00
updating the command
This commit is contained in:
parent
7e7cf40d24
commit
f841ee8434
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ func SetWGConfig(network string, peerupdate bool) error {
|
|||
|
||||
func SetPeers(iface string, peers []wgtypes.PeerConfig) {
|
||||
for _, peer := range peers {
|
||||
err := exec.Command("wg","set",iface,"peer",peer.PublicKey.String() ,peer.Endpoint.String()).Run()
|
||||
err := exec.Command("wg","set",iface,"peer",peer.PublicKey.String(),"endpoint",peer.Endpoint.String()).Run()
|
||||
if err != nil {
|
||||
log.Println("error setting peer",peer.Endpoint.String(),)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue