Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSocksServers ¶
func GetSocksServers() map[int]*WGSocksServer
GetSocksServers - Returns a map of WireGuard SOCKS proxies
func GetTCPForwarders ¶
func GetTCPForwarders() map[int]*WGTCPForwarder
GetTCPForwarders - Returns a map of WireGuard TCP forwarders
func RemoveSocksServer ¶
func RemoveSocksServer(id int)
RemoveSocksServer - Remove a SOCKS proxy by id
func RemoveTCPForwarder ¶
func RemoveTCPForwarder(id int)
RemoteTCPForwarder - Remove a TCP forwarder by id
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
GetSocksServer - Returns a WireGuard SOCKS proxy by id
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 }
WGTCPForwarder - A WireGuard TCP forwarder
func GetTCPForwarder ¶
func GetTCPForwarder(id int) *WGTCPForwarder
GetTCPForwarder - Returns a WireGuard TCP forwarder by id
func NewWGTCPForwarder ¶
func NewWGTCPForwarder(targetAddress string, tunIP string, tunPort int, tnet *netstack.Net) *WGTCPForwarder
NewWGTCPForwarder - Create a new WireGuard TCP forwarder
func (*WGTCPForwarder) LocalAddr ¶
func (f *WGTCPForwarder) LocalAddr() string
LocalAddr - The local address
func (*WGTCPForwarder) RemoteAddr ¶
func (f *WGTCPForwarder) RemoteAddr() string
RemoteAddr - The remote address
Click to show internal directories.
Click to hide internal directories.