|
|
@ -191,10 +191,7 @@ func (s *Server) ListenAndServe() error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for _, arg := range cmdUserArgs {
|
|
|
|
flags = append(flags, cmdUserArgs...)
|
|
|
|
flags = append(flags, arg)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cmd := exec.CommandContext(cmdCtx, s.executableBinary, flags...)
|
|
|
|
cmd := exec.CommandContext(cmdCtx, s.executableBinary, flags...)
|
|
|
|
cmd.Env = append(sshSession.Environ(), fmt.Sprintf("TERM=%s", ptyReq.Term))
|
|
|
|
cmd.Env = append(sshSession.Environ(), fmt.Sprintf("TERM=%s", ptyReq.Term))
|
|
|
|
if proxy, ok := os.LookupEnv("HTTPS_PROXY"); ok {
|
|
|
|
if proxy, ok := os.LookupEnv("HTTPS_PROXY"); ok {
|
|
|
|