wgproxy

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

func NewFactory

func NewFactory(userspace bool, wgPort int) *Factory

func (*Factory) Free

func (w *Factory) Free() error

func (*Factory) GetProxy

func (w *Factory) GetProxy() Proxy

type Proxy

type Proxy interface {
	AddTurnConn(ctx context.Context, turnConn net.Conn) (net.Addr, error)
	CloseConn() error
}

Proxy is a transfer layer between the relayed connection and the WireGuard

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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