fix netns for socks5 and relay handler

This commit is contained in:
ginuerzh
2024-06-24 21:42:37 +08:00
parent 5d7100f749
commit 56a68ae06f
3 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -63,7 +63,9 @@ func worker(id int, args []string, ctx *context.Context, ret *int) {
cmd.Stderr = os.Stderr
cmd.Env = append(os.Environ(), fmt.Sprintf("_GOST_ID=%d", id))
cmd.Run()
if err := cmd.Run(); err != nil {
log.Fatal(err)
}
if cmd.ProcessState.Exited() {
*ret = cmd.ProcessState.ExitCode()
}