diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-10-08 11:55:15 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-11-23 21:51:20 +0100 |
commit | ef683e13aaefebd9cd1f267d5339e1ef574c42d0 (patch) | |
tree | a1e8460fe872fa72750e285101fbdf7d70b92531 /pkg/vpn/launcher_linux.go | |
parent | 49755a3271a19ab8e441406c7095e283a2d6241e (diff) |
[feat] pass udp flag to bitmask-root
Diffstat (limited to 'pkg/vpn/launcher_linux.go')
-rw-r--r-- | pkg/vpn/launcher_linux.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/vpn/launcher_linux.go b/pkg/vpn/launcher_linux.go index 52c87f7..57bbe78 100644 --- a/pkg/vpn/launcher_linux.go +++ b/pkg/vpn/launcher_linux.go @@ -215,7 +215,8 @@ func runBitmaskRoot(arg ...string) error { } arg = append([]string{bitmaskRoot}, arg...) - out, err := exec.Command("pkexec", arg...).Output() + cmd := exec.Command("pkexec", arg...) + out, err := cmd.Output() if err != nil && arg[2] != "isup" { log.Println("Error while running bitmask-root:") log.Println("args: ", arg) |