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 ReCreateHTTP(port int, tunnel C.Tunnel)
- func ReCreateMixed(port int, tunnel C.Tunnel)
- func ReCreateRedir(port int, tunnel C.Tunnel)
- 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 SetAllowLanObserver(observe func(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 ReCreateHTTP ¶
func ReCreateMixed ¶
func ReCreateRedir ¶
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 SetAllowLanObserver ¶
func SetAllowLanObserver(observe func(bool))
func SetBindAddress ¶
func SetBindAddress(host string)
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package hysteria2_realm copy and modify from: https://github.com/apernet/hysteria-realm-server/tree/1ec22609705b5896df17d4ae4bfb2a1675cdb606
|
Package hysteria2_realm copy and modify from: https://github.com/apernet/hysteria-realm-server/tree/1ec22609705b5896df17d4ae4bfb2a1675cdb606 |
Click to show internal directories.
Click to hide internal directories.