system

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExceptionRoute

func AddExceptionRoute(ip string) error

func ClearProxy

func ClearProxy() error

func ClearStaleProxy added in v0.10.3

func ClearStaleProxy(host string, port int) error

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 RemoveExceptionRoute(ip string) error

func RemoveStaleTUNRoutes added in v0.11.1

func RemoveStaleTUNRoutes(prefix string)

func SetProxy

func SetProxy(host string, httpPort, socksPort int) error

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 SetupTUNInterface(name, addr, mask, dns string) error

func TeardownTUNInterface added in v0.11.1

func TeardownTUNInterface(addr string)

Types

This section is empty.

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.

Jump to

Keyboard shortcuts

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