diff --git a/service/profile/profile.go b/service/profile/profile.go index f2a4df1c1..a2f514a1c 100644 --- a/service/profile/profile.go +++ b/service/profile/profile.go @@ -852,6 +852,7 @@ func (p *Profile) clearWgMac() { []string{ "is not a", }, + "/usr/local/bin/bash", p.wgQuickPath, "down", p.Iface, ) @@ -2127,7 +2128,7 @@ func (p *Profile) confWgMac() (err error) { output := "" for i := 0; i < 3; i++ { _, _ = utils.ExecOutput( - p.wgQuickPath, "down", p.Iface, + "/usr/local/bin/bash", p.wgQuickPath, "down", p.Iface, ) if i == 0 { @@ -2138,6 +2139,7 @@ func (p *Profile) confWgMac() (err error) { output, err = utils.ExecOutputLogged( nil, + "/usr/local/bin/bash", p.wgQuickPath, "up", p.Iface, ) diff --git a/service/profile/utils.go b/service/profile/utils.go index c8b0ce004..79bc24454 100644 --- a/service/profile/utils.go +++ b/service/profile/utils.go @@ -64,13 +64,7 @@ func GetWgQuickPath() string { break case "darwin": - path, _ := exec.LookPath( - "/Applications/Pritunl.app/Contents/Resources/wg-quick") - if path != "" { - return path - } - - path, _ = exec.LookPath("/usr/bin/wg-quick") + path, _ := exec.LookPath("/usr/bin/wg-quick") if path != "" { return path }