remove call to wgctrl.Device for freebsd

This commit is contained in:
Matthew R. Kasun
2022-02-07 05:45:24 -05:00
parent c4aff93437
commit a529b28a00
2 changed files with 14 additions and 9 deletions

View File

@@ -50,7 +50,7 @@ func SetPeerRoutes(iface, currentNodeAddr string, oldPeers map[string][]net.IPNe
}
// SetCurrentPeerRoutes - sets all the current peers
func SetCurrentPeerRoutes(iface, currentAddr string, peers []wgtypes.Peer) {
func SetCurrentPeerRoutes(iface, currentAddr string, peers []wgtypes.PeerConfig) {
for _, peer := range peers {
for _, allowedIP := range peer.AllowedIPs {
setRoute(iface, &allowedIP, currentAddr)