Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSocksServers ¶
func GetSocksServers() map[int]*WGSocksServer
func GetTCPForwarders ¶
func GetTCPForwarders() map[int]*WGTCPForwarder
func RemoveSocksServer ¶
func RemoveSocksServer(id int)
func RemoveTCPForwarder ¶
func RemoveTCPForwarder(id int)
Types ¶
type WGSocksServer ¶
type WGSocksServer struct { ID int // contains filtered or unexported fields }
WGSocksServer implements a Socks5 server
func GetSocksServer ¶
func GetSocksServer(id int) *WGSocksServer
func NewWGSocksServer ¶
func NewWGSocksServer(lport int, tunIP string, tnet *netstack.Net) *WGSocksServer
func (*WGSocksServer) LocalAddr ¶
func (s *WGSocksServer) LocalAddr() string
func (*WGSocksServer) Start ¶
func (s *WGSocksServer) Start() error
func (*WGSocksServer) Stop ¶
func (s *WGSocksServer) Stop()
type WGTCPForwarder ¶
type WGTCPForwarder struct { ID int // contains filtered or unexported fields }
func GetTCPForwarder ¶
func GetTCPForwarder(id int) *WGTCPForwarder
func NewWGTCPForwarder ¶
func (*WGTCPForwarder) LocalAddr ¶
func (f *WGTCPForwarder) LocalAddr() string
func (*WGTCPForwarder) RemoteAddr ¶
func (f *WGTCPForwarder) RemoteAddr() string
func (*WGTCPForwarder) Start ¶
func (f *WGTCPForwarder) Start() error
func (*WGTCPForwarder) Stop ¶
func (f *WGTCPForwarder) Stop()
Click to show internal directories.
Click to hide internal directories.