Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ws_ssh_term.go文件中63-67行的代码功能是什么?我注释掉后正常能ssh到指定服务器 #25

Open
zhouruisong opened this issue Aug 2, 2021 · 2 comments

Comments

@zhouruisong
Copy link

	client, err := flx.NewSshClient(mc)
	if wshandleError(wsConn, err) {
		return
	}
	defer client.Close()
	startTime := time.Now()
        //下面注释的这段代码功能是什么?我注释掉后还是正常能ssh到指定服务器
	//ssConn, err := util.NewSshConn(cols, rows, client)
	//if wshandleError(wsConn, err) {
	//	return
	//}
	//defer ssConn.Close()
	sws, err := model.NewLogicSshWsSession(cols, rows, true, client, wsConn)
	if wshandleError(wsConn, err) {
		return
	}
	defer sws.Close()

	quitChan := make(chan bool, 3)
	sws.Start(quitChan)
	go sws.Wait(quitChan)
@zhouruisong
Copy link
Author

上面注释掉的代码什么作用?注释后还能正常运行ssh到指定服务器

@zhouruisong
Copy link
Author

@mojocn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant