fix: 补齐 connect 函数缺失的参数数量

采用 nil 作为 `keyExchangeList` 从而提供默认的行为
This commit is contained in:
TieWay59 2023-03-11 20:37:40 +08:00
parent 53850621a5
commit fa8ecd9a33

View file

@ -18,7 +18,7 @@ const (
func Test_SSH(t *testing.T) { func Test_SSH(t *testing.T) {
var cipherList []string 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 { if err != nil {
t.Error(err) t.Error(err)
return return