tproxy

package
v0.0.0-...-370076f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

README

tproxy plugin can bypass ip based on cidr and geo.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tproxy

type Tproxy struct {
	CIDR4       []*net.IPNet
	CIDR6       []*net.IPNet
	GeoIP       []string
	Cache       *cache.Cache
	TCPTimeout  int
	UDPTimeout  int
	RedirectDNS string
}

func NewTproxy

func NewTproxy(cidr4List, cidr6List string, geoIP []string, tcptimeout, udptimeout int, redirectDNS string) (*Tproxy, error)

func (*Tproxy) TouchBrook

func (p *Tproxy) TouchBrook()

Jump to

Keyboard shortcuts

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