Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Nov 17, 2020
1 parent e503d17 commit 113ef3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions library/ssh/cipher.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ssh
import "golang.org/x/crypto/ssh"

var (
defaultCiphers = []string{"aes128-ctr", "aes192-ctr", "aes256-ctr", "aes128-gcm@openssh.com", "arcfour256", "arcfour128", "aes128-cbc", "3des-cbc", "aes192-cbc", "aes256-cbc"}
supportedCiphers = SupportedCiphers()
)

Expand Down
2 changes: 1 addition & 1 deletion library/ssh/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func KeyboardInteractivefunc(reader *bufio.Reader, writer io.Writer, account *Ac
if emptyInteractiveCount++; emptyInteractiveCount > 50 {
return nil, errors.New("interactive count is too much")
}
return []string{}, nil
return nil, nil
}
for _, question := range questions {
io.WriteString(utils.DecodeBy(charset, writer), question)
Expand Down

0 comments on commit 113ef3e

Please sign in to comment.