usp

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WGUserSpaceProxy

type WGUserSpaceProxy struct {
	// contains filtered or unexported fields
}

WGUserSpaceProxy proxies

func NewWGUserSpaceProxy

func NewWGUserSpaceProxy(wgPort int) *WGUserSpaceProxy

NewWGUserSpaceProxy instantiate a user space WireGuard proxy. This is not a thread safe implementation

func (*WGUserSpaceProxy) AddTurnConn

func (p *WGUserSpaceProxy) AddTurnConn(ctx context.Context, remoteConn net.Conn) (net.Addr, error)

AddTurnConn start the proxy with the given remote conn

func (*WGUserSpaceProxy) CloseConn

func (p *WGUserSpaceProxy) CloseConn() error

CloseConn close the localConn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL