mirror of
https://github.com/shanghai-edu/multissh.git
synced 2025-12-16 13:27:44 +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) {
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue