proxy

package
v0.0.0-...-317432a Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowLan

func AllowLan() bool

func BindAddress

func BindAddress() string

func PreCmd

func PreCmd(cmd string) error

func ReCreateHTTP

func ReCreateHTTP(port int, tcpIn chan<- C.ConnContext) error

func ReCreateMixed

func ReCreateMixed(port int, tcpIn chan<- C.ConnContext, udpIn chan<- *inbound.PacketAdapter) error

func ReCreateRedir

func ReCreateRedir(port int, tcpIn chan<- C.ConnContext, udpIn chan<- *inbound.PacketAdapter) error

func ReCreateSocks

func ReCreateSocks(port int, tcpIn chan<- C.ConnContext, udpIn chan<- *inbound.PacketAdapter) error

func ReCreateTProxy

func ReCreateTProxy(port int, tcpIn chan<- C.ConnContext, udpIn chan<- *inbound.PacketAdapter) error

func ReCreateTun

func ReCreateTun(TunDevice, TUNPreUp, TUNPostUp string, tcpIn chan<- C.ConnContext, udpIn chan<- *inbound.PacketAdapter) error

func SetAllowLan

func SetAllowLan(al bool)

func SetBindAddress

func SetBindAddress(host string)

Types

type Ports

type Ports struct {
	Port       int `json:"port"`
	SocksPort  int `json:"socks-port"`
	RedirPort  int `json:"redir-port"`
	TProxyPort int `json:"tproxy-port"`
	MixedPort  int `json:"mixed-port"`
}

func GetPorts

func GetPorts() *Ports

GetPorts return the ports of proxy servers

Directories

Path Synopsis
tun

Jump to

Keyboard shortcuts

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