Преглед изворни кода

auto update script executed

Toby Chui пре 1 година
родитељ
комит
d5bc4fcb78
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      mod/sshprox/sshprox.go

+ 1 - 1
mod/sshprox/sshprox.go

@@ -148,7 +148,7 @@ func (i *Instance) CreateNewConnection(listenPort int, username string, remoteIp
 	sshCommand := []string{"ssh", "-t", connAddr, "-p", strconv.Itoa(remotePort)}
 	cmd := exec.Command(i.ExecPath, "-w", "-p", strconv.Itoa(listenPort), "--once", "--config", configPath, "--title-format", title, "bash", "-c", strings.Join(sshCommand, " "))
 	cmd.Dir = filepath.Dir(i.ExecPath)
-	cmd.Env = append(cmd.Env, "TERM=xterm")
+	cmd.Env = append(os.Environ(), "TERM=xterm")
 	cmd.Stdout = os.Stdout
 	cmd.Stderr = os.Stderr
 	go func() {