proxy

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OnAskAccept = func(to, from []*tunnel.SectionInfo) int {
	return tunnel.AcceptorDecisionAccept
}
View Source
var OnAskReroute = func() bool { return false }
View Source
var OnPaidUpdate = func(paid tlb.Coins) {}
View Source
var OnTunnel = func(addr string) {}
View Source
var OnTunnelStopped = func() {}

Functions

func RunProxy added in v1.7.0

func RunProxy(closerCtx context.Context, addr string, adnlKey ed25519.PrivateKey, res chan<- State, versionAndDevice string, blockHttp bool, netConfigPath string, tunCfg *tunnelConfig.ClientConfig, customTunNetCfg *liteclient.GlobalConfig) error

func RunProxyWithConfig added in v1.7.0

func RunProxyWithConfig(closerCtx context.Context, addr string, adnlKey ed25519.PrivateKey, res chan<- State, blockHttp bool, versionAndDevice string, lsCfg *liteclient.GlobalConfig, tunCfg *tunnelConfig.ClientConfig, customTunNetCfg *liteclient.GlobalConfig) error

Types

type State

type State struct {
	Type    string
	State   string
	Stopped bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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