Versions in this module Expand all Collapse all v0 v0.1.1 Dec 22, 2023 Changes in this version + var UDPBufSize = 4096 + var UDPReadTimeout = time.Second * 30 + type Config struct + LocalIp string + LocalPort string + Name string + ProxyType string + RemoteIp string + RemotePort string + type Proxy interface + Close func() + LocalAddr func() string + Name func() string + RemoteAddr func() string + Run func() + type TCPProxy struct + func NewTCPProxy(cfg *Config, conn net.Conn) (*TCPProxy, error) + func (self *TCPProxy) Close() + func (self *TCPProxy) LocalAddr() string + func (self *TCPProxy) Name() string + func (self *TCPProxy) RemoteAddr() string + func (self *TCPProxy) Run() + func (self *TCPProxy) String() string + type UDPProxy struct + func NewUDPProxy(cfg *Config, conn net.Conn) (*UDPProxy, error) + func (self *UDPProxy) Close() + func (self *UDPProxy) LocalAddr() string + func (self *UDPProxy) Name() string + func (self *UDPProxy) RemoteAddr() string + func (self *UDPProxy) Run() + func (self *UDPProxy) String() string v0.1.0 Dec 13, 2023