Pārlūkot izejas kodu

freebsd updates

afeiszli 3 gadi atpakaļ
vecāks
revīzija
e47ec16ae4
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2 4
      netclient/wireguard/freebsd.go

+ 2 - 4
netclient/wireguard/freebsd.go

@@ -95,10 +95,8 @@ func addAddressFreeBSD(ifacename, inet6, inet string) {
 
 func setConfFreeBSD(iface string, confPath string) error {
 	var tmpConf = confPath + ".sync.tmp"
-	var confCmd = "wg-quick strip "
-	if ncutils.IsMac() {
-		confCmd = "grep -v -e Address -e MTU -e PostUp -e PostDown "
-	}
+	//var confCmd = "wg-quick strip "
+	confCmd := "grep -v -e Address -e MTU -e PostUp -e PostDown "
 	confRaw, err := ncutils.RunCmd(confCmd+confPath, false)
 	if err != nil {
 		return err