configuration

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogNaxSize = or(1024*1024, 1024*256)
	LogMaxFile = or(5, 0)

	DNSCache = or[uint](1024, 256)

	ProcessDumper = or(true, false)

	Timeout = time.Second * 20

	SnifferBufferSize = pool.DefaultSize

	UDPBatchSize             = 8
	MaxUDPUnprocessedPackets = 250
	UDPBufferSize            = atomicx.NewValue(2048)
	RelayBufferSize          = atomicx.NewValue(4096)
	DNSProcessThread         = atomicx.NewValue(4)

	MPTCP = false

	UDPChannelBufferSize = 2500

	IPv6 = atomicx.NewValue(true)
	// resolver fake ip or inbound fake ip enable
	FakeIPEnabled = atomicx.NewValue(false)

	HistorySize = or[uint](1000, 500)
)
View Source
var Lite = os.Getenv("YUHAIIN_LITE") == "true"

Functions

func GetFakeIPRange

func GetFakeIPRange(ipRange string, ipv6 bool) netip.Prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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