Simplify parameter types (#18006)
Remove repeated type declarations in function definitions.
This commit is contained in:
@ -263,7 +263,7 @@ func sshConnectionFailed(conn net.Conn, err error) {
|
||||
}
|
||||
|
||||
// Listen starts a SSH server listens on given port.
|
||||
func Listen(host string, port int, ciphers []string, keyExchanges []string, macs []string) {
|
||||
func Listen(host string, port int, ciphers, keyExchanges, macs []string) {
|
||||
srv := ssh.Server{
|
||||
Addr: net.JoinHostPort(host, strconv.Itoa(port)),
|
||||
PublicKeyHandler: publicKeyHandler,
|
||||
|
Reference in New Issue
Block a user