chore: code tidy and doc update

This commit is contained in:
nadoo committed 2022-03-06 12:58:20 +08:00
1 parent 2ad3498abd
commit fc3a21617e
7 files changed
+33 -38

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
package smux
import (
"errors"
"net"
"net/url"
"sync"
@@ -66,7 +65,7 @@ func (s *SmuxClient) Dial(network, addr string) (net.Conn, error) {
// DialUDP connects to the given address via the proxy.
func (s *SmuxClient) DialUDP(network, addr string) (net.PacketConn, net.Addr, error) {
return nil, nil, errors.New("smux client does not support udp now")
return nil, nil, proxy.ErrNotSupported
}
func (s *SmuxClient) initConn() error {