chore: document works and code optimizations

This commit is contained in:
nadoo committed 2020-12-02 19:00:39 +08:00
1 parent 142865535e
commit 2db84bb7aa
17 files changed
+43 -54

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
package ssh
import (
"errors"
"io/ioutil"
"net"
"net/url"
@@ -101,7 +100,7 @@ func (s *SSH) Dial(network, addr string) (net.Conn, error) {
// DialUDP connects to the given address via the proxy.
func (s *SSH) DialUDP(network, addr string) (pc net.PacketConn, writeTo net.Addr, err error) {
return nil, nil, errors.New("ssh client does not support udp")
return nil, nil, proxy.ErrNotSupported
}
func privateKeyAuth(file string) (ssh.AuthMethod, error) {