Documentation ¶
Index ¶
- Variables
- func AllowLan() bool
- func BindAddress() string
- func Cleanup()
- func GetTuicConf() LC.TuicServer
- func GetTunConf() LC.Tun
- func ParseListener(mapping map[string]any) (C.InboundListener, error)
- func PatchInboundListeners(newListenerMap map[string]C.InboundListener, tunnel C.Tunnel, dropOld bool)
- func PatchTunnel(tunnels []LC.Tunnel, tunnel C.Tunnel)
- func ReCreateAutoRedir(ifaceNames []string, tunnel C.Tunnel)
- func ReCreateHTTP(port int, tunnel C.Tunnel)
- func ReCreateMixed(port int, tunnel C.Tunnel)
- func ReCreateRedir(port int, tunnel C.Tunnel)
- func ReCreateRedirToTun(ifaceNames []string)
- func ReCreateShadowSocks(shadowSocksConfig string, tunnel C.Tunnel)
- func ReCreateSocks(port int, tunnel C.Tunnel)
- func ReCreateTProxy(port int, tunnel C.Tunnel)
- func ReCreateTuic(config LC.TuicServer, tunnel C.Tunnel)
- func ReCreateTun(tunConf LC.Tun, tunnel C.Tunnel)
- func ReCreateVmess(vmessConfig string, tunnel C.Tunnel)
- 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 ReCreateAutoRedir ¶
func ReCreateHTTP ¶
func ReCreateMixed ¶
func ReCreateRedir ¶
func ReCreateRedirToTun ¶
func ReCreateRedirToTun(ifaceNames []string)
func ReCreateShadowSocks ¶
func ReCreateSocks ¶
func ReCreateTProxy ¶
func ReCreateTuic ¶
func ReCreateTuic(config LC.TuicServer, tunnel C.Tunnel)
func ReCreateVmess ¶
func SetAllowLan ¶
func SetAllowLan(al bool)
func SetBindAddress ¶
func SetBindAddress(host string)
Types ¶
Click to show internal directories.
Click to hide internal directories.