README ¶ anyproxy Proxy server supporting http/socks4/socks5 on port Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Variables type AnyProxy func NewAnyProxy(dial Dialer, logger *log.Logger, pool BytesPool) *AnyProxy func (s *AnyProxy) ListenAndServe(network, address string) error func (s *AnyProxy) ServeConn(conn net.Conn) type BytesPool type Dialer Constants ¶ This section is empty. Variables ¶ View Source var ErrNetClosing = errors.New("use of closed network connection") Functions ¶ This section is empty. Types ¶ type AnyProxy ¶ type AnyProxy struct { Socks4 socks4.Server Socks5 socks5.Server Http http.Server CMux *cmux.CMux } func NewAnyProxy ¶ func NewAnyProxy(dial Dialer, logger *log.Logger, pool BytesPool) *AnyProxy func (*AnyProxy) ListenAndServe ¶ func (s *AnyProxy) ListenAndServe(network, address string) error func (*AnyProxy) ServeConn ¶ func (s *AnyProxy) ServeConn(conn net.Conn) ServeConn is used to serve a single connection. type BytesPool ¶ added in v0.2.0 type BytesPool httpproxy.BytesPool type Dialer ¶ type Dialer interface { DialContext(ctx context.Context, network, address string) (net.Conn, error) } Source Files ¶ View all Source files proxy.gowarpping.go Directories ¶ Show internal Expand all Path Synopsis cmd anyproxy command Click to show internal directories. Click to hide internal directories.