mirror of
https://github.com/shanghai-edu/multissh.git
synced 2025-12-15 21:07:50 +00:00
fix: 补齐 connect 函数缺失的参数数量
采用 nil 作为 `keyExchangeList` 从而提供默认的行为
This commit is contained in:
parent
53850621a5
commit
fa8ecd9a33
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ const (
|
|||
|
||||
func Test_SSH(t *testing.T) {
|
||||
var cipherList []string
|
||||
session, err := connect(username, password, ip, key, port, cipherList)
|
||||
session, err := connect(username, password, ip, key, port, cipherList, nil)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue