Fix set_system_proxy when using sudo
This commit is contained in:
@@ -3,13 +3,9 @@ package settings
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"github.com/sagernet/sing-box/log"
|
||||
)
|
||||
|
||||
func runCommand(name string, args ...string) error {
|
||||
log.Debug(name, " ", strings.Join(args, " "))
|
||||
command := exec.Command(name, args...)
|
||||
command.Env = os.Environ()
|
||||
command.Stdin = os.Stdin
|
||||
|
||||
Reference in New Issue
Block a user