Documentation
¶
Index ¶
- func AddExceptionRoute(ip string) error
- func ClearProxy() error
- func ClearStaleProxy(host string, port int) error
- func DisableKillSwitch() error
- func EnableKillSwitch() error
- func IsElevated() bool
- func KillSwitchActive() bool
- func RelaunchElevated() error
- func RemoveExceptionRoute(ip string) error
- func RemoveStaleTUNRoutes(prefix string)
- func SetProxy(host string, httpPort, socksPort int) error
- func SetupTUNInterface(name, addr, mask, dns string) error
- func TeardownTUNInterface(addr string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddExceptionRoute ¶
func ClearProxy ¶
func ClearProxy() error
func ClearStaleProxy ¶ added in v0.10.3
func DisableKillSwitch ¶ added in v0.8.0
func DisableKillSwitch() error
func EnableKillSwitch ¶ added in v0.8.0
func EnableKillSwitch() error
EnableKillSwitch/DisableKillSwitch are Windows-only for now (Windows Firewall via netsh); see killswitch_windows.go. The UI hides the Kill Switch toggle on other platforms, same as TUN mode.
func IsElevated ¶
func IsElevated() bool
IsElevated is only meaningful on Windows (TUN mode's elevation gate); treat other platforms as already having whatever privileges they need since TUN mode isn't offered there yet.
func KillSwitchActive ¶ added in v0.10.3
func KillSwitchActive() bool
func RelaunchElevated ¶
func RelaunchElevated() error
func RemoveExceptionRoute ¶
func RemoveStaleTUNRoutes ¶ added in v0.11.1
func RemoveStaleTUNRoutes(prefix string)
func SetProxy ¶
SetProxy uses gsettings, which covers GNOME and most GTK-based desktops. Other desktop environments (KDE, etc.) will need their own backend later.
func SetupTUNInterface ¶ added in v0.11.0
func TeardownTUNInterface ¶ added in v0.11.1
func TeardownTUNInterface(addr string)
Types ¶
This section is empty.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package wintun embeds the official amd64 Wintun driver DLL (https://www.wintun.net, dual GPLv2/MIT licensed -- see WINTUN_LICENSE.txt in this directory) so Kite ships as a single portable executable: xray-core's TUN inbound needs wintun.dll sitting next to the running binary on Windows, and this lets Kite write it out itself on first use instead of requiring a separate installer/download.
|
Package wintun embeds the official amd64 Wintun driver DLL (https://www.wintun.net, dual GPLv2/MIT licensed -- see WINTUN_LICENSE.txt in this directory) so Kite ships as a single portable executable: xray-core's TUN inbound needs wintun.dll sitting next to the running binary on Windows, and this lets Kite write it out itself on first use instead of requiring a separate installer/download. |
Click to show internal directories.
Click to hide internal directories.