mirror of
https://github.com/UnnoTed/wireguird
synced 2026-07-25 17:24:46 -04:00
This commit extracts the following functions from the button change state callback: - `IsTunnelConnected(name string) (bool, error)` - checks if the tunnels is connected or returns an error - `DisconnectTunnel(name string) error` - disconnects from the tunnel or returns an error - `ConnectTunnel(name string) error` - connects to the tunnel or returns an error - `ToggleTunnel(name string) error` - toggles the connected/disconnected status of the tunnel |
||
|---|---|---|
| .. | ||
| get | ||
| gui.go | ||
| tunnels.go | ||