Documentation
¶
Index ¶
Constants ¶
View Source
const StreamTypeProxy = 0x01
Stream type marker (first byte sent on yamux stream)
View Source
const (
StreamTypeUDP = 0x03
)
Stream type markers for Yamux multiplexing
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPProxyServer ¶
type HTTPProxyServer struct {
// contains filtered or unexported fields
}
HTTPProxyServer implements a standard HTTP/HTTPS forward proxy
func NewHTTPProxyServer ¶
func NewHTTPProxyServer(bindAddr string, session *yamux.Session, router *routing.Router, bufferConfig *config.BufferConfig) (*HTTPProxyServer, error)
NewHTTPProxyServer creates a local HTTP proxy server
func (*HTTPProxyServer) Addr ¶
func (s *HTTPProxyServer) Addr() net.Addr
Addr returns the proxy listen address
func (*HTTPProxyServer) GetStats ¶
func (s *HTTPProxyServer) GetStats() *Stats
GetStats returns the current stats reference
func (*HTTPProxyServer) Serve ¶
func (s *HTTPProxyServer) Serve()
Serve starts accepting HTTP connections
type SOCKS5Server ¶
type SOCKS5Server struct {
// contains filtered or unexported fields
}
SOCKS5Server is a minimal local SOCKS5 proxy that tunnels through yamux
func NewSOCKS5Server ¶
func NewSOCKS5Server(bindAddr string, session *yamux.Session, router *routing.Router, bufferConfig *config.BufferConfig) (*SOCKS5Server, error)
NewSOCKS5Server creates a new SOCKS5 proxy server
func (*SOCKS5Server) Addr ¶
func (s *SOCKS5Server) Addr() net.Addr
Addr returns the proxy listen address
func (*SOCKS5Server) GetStats ¶
func (s *SOCKS5Server) GetStats() *Stats
GetStats returns the current stats reference
func (*SOCKS5Server) Serve ¶
func (s *SOCKS5Server) Serve()
Serve starts accepting SOCKS5 connections (blocking)
Click to show internal directories.
Click to hide internal directories.