add sshd listener
This commit is contained in:
@ -15,6 +15,7 @@ import (
|
||||
|
||||
func init() {
|
||||
registry.RegisterDialer("http3", NewDialer)
|
||||
registry.RegisterDialer("h3", NewDialer)
|
||||
}
|
||||
|
||||
type http3Dialer struct {
|
||||
|
@ -164,7 +164,7 @@ func (d *sshDialer) dial(ctx context.Context, network, addr string, opts *dialer
|
||||
|
||||
func (d *sshDialer) initSession(ctx context.Context, addr string, conn net.Conn) (*sshSession, error) {
|
||||
config := ssh.ClientConfig{
|
||||
// Timeout: timeout,
|
||||
Timeout: 30 * time.Second,
|
||||
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
|
||||
}
|
||||
if d.md.user != nil {
|
||||
|
Reference in New Issue
Block a user