Documentation ¶
Index ¶
- Variables
- func AllowLan() bool
- func BindAddress() string
- func Cleanup(wait bool)
- func GetTuicConf() LC.TuicServer
- func GetTunConf() LC.Tun
- func ParseListener(mapping map[string]any) (C.InboundListener, error)
- func PatchInboundListeners(newListenerMap map[string]C.InboundListener, tcpIn chan<- C.ConnContext, ...)
- func PatchTunnel(tunnels []LC.Tunnel, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
- func ReCreateAutoRedir(ifaceNames []string, tcpIn chan<- C.ConnContext, _ chan<- C.PacketAdapter)
- func ReCreateHTTP(port int, tcpIn chan<- C.ConnContext)
- func ReCreateMixed(port int, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
- func ReCreateRedir(port int, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter, ...)
- func ReCreateRedirToTun(ifaceNames []string)
- func ReCreateShadowSocks(shadowSocksConfig string, tcpIn chan<- C.ConnContext, ...)
- func ReCreateSocks(port int, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
- func ReCreateTProxy(port int, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter, ...)
- func ReCreateTuic(config LC.TuicServer, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
- func ReCreateTun(tunConf LC.Tun, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
- func ReCreateVmess(vmessConfig string, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
- func SetAllowLan(al bool)
- func SetBindAddress(host string)
- type Ports
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LastTunConf LC.Tun LastTuicConf LC.TuicServer )
Functions ¶
func BindAddress ¶
func BindAddress() string
func GetTuicConf ¶
func GetTuicConf() LC.TuicServer
func GetTunConf ¶
func ParseListener ¶
func ParseListener(mapping map[string]any) (C.InboundListener, error)
func PatchInboundListeners ¶
func PatchInboundListeners(newListenerMap map[string]C.InboundListener, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter, natTable C.NatTable, dropOld bool)
func PatchTunnel ¶
func PatchTunnel(tunnels []LC.Tunnel, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
func ReCreateAutoRedir ¶
func ReCreateAutoRedir(ifaceNames []string, tcpIn chan<- C.ConnContext, _ chan<- C.PacketAdapter)
func ReCreateHTTP ¶
func ReCreateHTTP(port int, tcpIn chan<- C.ConnContext)
func ReCreateMixed ¶
func ReCreateMixed(port int, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
func ReCreateRedir ¶
func ReCreateRedir(port int, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter, natTable C.NatTable)
func ReCreateRedirToTun ¶
func ReCreateRedirToTun(ifaceNames []string)
func ReCreateShadowSocks ¶
func ReCreateShadowSocks(shadowSocksConfig string, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
func ReCreateSocks ¶
func ReCreateSocks(port int, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
func ReCreateTProxy ¶
func ReCreateTProxy(port int, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter, natTable C.NatTable)
func ReCreateTuic ¶
func ReCreateTuic(config LC.TuicServer, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
func ReCreateTun ¶
func ReCreateTun(tunConf LC.Tun, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
func ReCreateVmess ¶
func ReCreateVmess(vmessConfig string, tcpIn chan<- C.ConnContext, udpIn chan<- C.PacketAdapter)
func SetAllowLan ¶
func SetAllowLan(al bool)
func SetBindAddress ¶
func SetBindAddress(host string)
Types ¶
Click to show internal directories.
Click to hide internal directories.