We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65d3ff commit 31a9ca6Copy full SHA for 31a9ca6
intra/tunnel.go
@@ -34,6 +34,7 @@ import (
34
"strings"
35
"sync"
36
"sync/atomic"
37
+ "syscall"
38
"time"
39
40
x "github.com/celzero/firestack/intra/backend"
@@ -518,7 +519,9 @@ func (t *rtunnel) stat() (*x.NetStat, error) {
518
519
out.GOSt.NumCgo = int64(runtime.NumCgoCall())
520
out.GOSt.NumCPU = int64(runtime.NumCPU())
521
- out.GOSt.Args = strings.Join(os.Args, ";")
522
+ uid := fmt.Sprintf("uid=%d", syscall.Getuid())
523
+ pid := fmt.Sprintf("pid=%d", syscall.Getpid())
524
+ out.GOSt.Args = strings.Join(append(os.Args, uid, pid), ";")
525
out.GOSt.Env = strings.Join(core.RuntimeEnviron(), ";")
526
out.GOSt.Pers, _ = os.Executable()
527
0 commit comments