소스 검색

auto update script executed

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

+ 1 - 1
mod/sshprox/sshprox.go

@@ -88,7 +88,7 @@ func (m *Manager) NewSSHProxy(binaryRoot string) (*Instance, error) {
 func (i *Instance) CreateNewConnection(listenPort int, remoteIpAddr string, remotePort int) error {
 
 	//Create a gotty instance
-	cmd := exec.Command(i.ExecPath, "-w", "-p", strconv.Itoa(listenPort), "-a", "127.0.0.1", "--once", "--ws-origin", "\\w*", "ssh", remoteIpAddr, "-p", strconv.Itoa(remotePort))
+	cmd := exec.Command(i.ExecPath, "-w", "-p", strconv.Itoa(listenPort), "-a", "127.0.0.1", "--once", "--ws-origin", ".*", "ssh", remoteIpAddr, "-p", strconv.Itoa(remotePort))
 	cmd.Stdout = os.Stdout
 	cmd.Stderr = os.Stderr
 	go func() {