proxy

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyManager

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

ProxyManager handles the creation and management of proxy connections

func NewProxyManager

func NewProxyManager(tnet *netstack.Net) *ProxyManager

NewProxyManager creates a new proxy manager instance

func NewProxyManagerWithoutTNet

func NewProxyManagerWithoutTNet() *ProxyManager

init function without tnet

func (*ProxyManager) AddTarget

func (pm *ProxyManager) AddTarget(proto, listenIP string, port int, targetAddr string) error

AddTarget adds as new target for proxying

func (*ProxyManager) ClearTunnelID

func (pm *ProxyManager) ClearTunnelID()

ClearTunnelID clears cached attribute sets for the current tunnel.

func (*ProxyManager) PrintTargets

func (pm *ProxyManager) PrintTargets()

write a function to print out the current targets in the ProxyManager

func (*ProxyManager) RemoveTarget

func (pm *ProxyManager) RemoveTarget(proto, listenIP string, port int) error

func (*ProxyManager) SetAsyncBytes

func (pm *ProxyManager) SetAsyncBytes(b bool)

func (*ProxyManager) SetTNet

func (pm *ProxyManager) SetTNet(tnet *netstack.Net)

Function to add tnet to existing ProxyManager

func (*ProxyManager) SetTunnelID

func (pm *ProxyManager) SetTunnelID(id string)

SetTunnelID sets the WireGuard peer public key used as tunnel_id label.

func (*ProxyManager) Start

func (pm *ProxyManager) Start() error

Start begins listening for all configured proxy targets

func (*ProxyManager) Stop

func (pm *ProxyManager) Stop() error

type Target

type Target struct {
	Address string
	Port    int
}

Target represents a proxy target with its address and port

Jump to

Keyboard shortcuts

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