소스 검색

auto update script executed

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

+ 1 - 1
mod/sshprox/sshprox.go

@@ -139,7 +139,7 @@ func (i *Instance) CreateNewConnection(listenPort int, username string, remoteIp
 	if username != "" {
 		connAddr = username + "@" + remoteIpAddr
 	}
-	configPath := ".gotty"
+	configPath := filepath.Join(filepath.Dir(i.ExecPath), ".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