system

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNat

func NewNat() *nat

Types

type Option

type Option func(*TunSystemInbound)

func With4

func With4(natIP net.IP, listenIP net.IP, listenPort uint16) Option

func With6

func With6(natIP net.IP, listenIP net.IP, listenPort uint16) Option

func WithDns

func WithDns(dnsDispatcher dns.DnsConn, dnsAddress []mynet.Destination) Option

func WithHandler

func WithHandler(h i.Handler) Option

func WithRejector

func WithRejector(rejector inboundcommon.Rejector) Option

func WithTag

func WithTag(tag string) Option

func WithTun

func WithTun(tun tunDevice) Option

type SrcDst

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

type TunSystemInbound

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

func New

func New(opts ...Option) *TunSystemInbound

func (*TunSystemInbound) Close

func (t *TunSystemInbound) Close() error

func (*TunSystemInbound) Start

func (ti *TunSystemInbound) Start() error

func (*TunSystemInbound) Tag

func (t *TunSystemInbound) Tag() string

func (*TunSystemInbound) WritePacket

func (t *TunSystemInbound) WritePacket(p *udp.Packet) error

Jump to

Keyboard shortcuts

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