소스 검색

auto update script executed

Toby Chui 2 년 전
부모
커밋
67e5ebff15
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      mod/sshprox/sshprox.go

+ 2 - 1
mod/sshprox/sshprox.go

@@ -139,7 +139,8 @@ func (i *Instance) CreateNewConnection(listenPort int, username string, remoteIp
 	if username != "" {
 		connAddr = username + "@" + remoteIpAddr
 	}
-	cmd := exec.Command(i.ExecPath, "-w", "-p", strconv.Itoa(listenPort), "--once", "ssh", connAddr, "-p", strconv.Itoa(remotePort))
+	configPath := ".gotty"
+	cmd := exec.Command(i.ExecPath, "-w", "-p", strconv.Itoa(listenPort), "--once", "--config", configPath, "ssh", connAddr, "-p", strconv.Itoa(remotePort))
 	cmd.Dir = filepath.Dir(i.ExecPath)
 	cmd.Stdout = os.Stdout
 	cmd.Stderr = os.Stderr