mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-23 12:49:51 +03:00
Add set system proxy support for macOS
This commit is contained in:
@@ -13,3 +13,9 @@ func runCommand(name string, args ...string) error {
|
||||
command.Stderr = os.Stderr
|
||||
return command.Run()
|
||||
}
|
||||
|
||||
func readCommand(name string, args ...string) ([]byte, error) {
|
||||
command := exec.Command(name, args...)
|
||||
command.Env = os.Environ()
|
||||
return command.CombinedOutput()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user