mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-30 04:21:29 +00:00
21 lines
276 B
Go
21 lines
276 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"os/exec"
|
||
|
|
||
|
"github.com/sagernet/sing-box/log"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
findSDK()
|
||
|
|
||
|
command := exec.Command(os.Args[1], os.Args[2:]...)
|
||
|
command.Stdout = os.Stdout
|
||
|
command.Stderr = os.Stderr
|
||
|
err := command.Run()
|
||
|
if err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
}
|