- 修复「修改接入网关失败」的问题
- 完成「[功能请求]审计的历史会话建议添加“已阅”的功能」close #194 - 增加一键删除登录日志和历史会话的功能
This commit is contained in:
@ -49,6 +49,29 @@ func NewSshClient(ip string, port int, username, password, privateKey, passphras
|
||||
}
|
||||
|
||||
addr := fmt.Sprintf("%s:%d", ip, port)
|
||||
//
|
||||
//socks5, err := proxy.SOCKS5("tcp", "",
|
||||
// &proxy.Auth{User: "username", Password: "password"},
|
||||
// &net.Dialer{
|
||||
// Timeout: 30 * time.Second,
|
||||
// KeepAlive: 30 * time.Second,
|
||||
// },
|
||||
//)
|
||||
//if err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
//
|
||||
//conn, err := socks5.Dial("tcp", addr)
|
||||
//if err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
//
|
||||
//clientConn, channels, requests, err := ssh.NewClientConn(conn, addr, config)
|
||||
//if err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
//
|
||||
//ssh.NewClient(clientConn, channels, requests)
|
||||
|
||||
return ssh.Dial("tcp", addr, config)
|
||||
}
|
||||
|
Reference in New Issue
Block a user