Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WGUDPProxy ¶
type WGUDPProxy struct {
// contains filtered or unexported fields
}
WGUDPProxy proxies
func NewWGUDPProxy ¶
func NewWGUDPProxy(wgPort int) *WGUDPProxy
NewWGUDPProxy instantiate a UDP based WireGuard proxy. This is not a thread safe implementation
func (*WGUDPProxy) AddTurnConn ¶
func (p *WGUDPProxy) AddTurnConn(ctx context.Context, endpoint *net.UDPAddr, remoteConn net.Conn) error
AddTurnConn The provided Context must be non-nil. If the context expires before the connection is complete, an error is returned. Once successfully connected, any expiration of the context will not affect the connection.
func (*WGUDPProxy) EndpointAddr ¶
func (p *WGUDPProxy) EndpointAddr() *net.UDPAddr
func (*WGUDPProxy) Pause ¶
func (p *WGUDPProxy) Pause()
Pause pauses the proxy from receiving data from the remote peer
func (*WGUDPProxy) Work ¶
func (p *WGUDPProxy) Work()
Work starts the proxy or resumes it if it was paused
Click to show internal directories.
Click to hide internal directories.