(network string, address string, config *ssh.ClientConfig)
| 453 | type secureDialer struct{} |
| 454 | |
| 455 | func (d *secureDialer) Dial(network string, address string, config *ssh.ClientConfig) (SecureClient, error) { |
| 456 | client, err := ssh.Dial(network, address, config) |
| 457 | if err != nil { |
| 458 | return nil, err |
| 459 | } |
| 460 | |
| 461 | return &secureClient{client: client}, nil |
| 462 | } |
| 463 | |
| 464 | func DefaultSecureDialer() SecureDialer { |
| 465 | return &secureDialer{} |