diff options
Diffstat (limited to 'pkg/backend/api.go')
-rw-r--r-- | pkg/backend/api.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/backend/api.go b/pkg/backend/api.go index 293dd9e..8d6d049 100644 --- a/pkg/backend/api.go +++ b/pkg/backend/api.go @@ -54,6 +54,16 @@ func SwitchOff() { go stopVPN() } +// TODO implement Reconnect? + +func UseGateway(label string) { + ctx.bm.UseGateway(label) +} + +func UseTransport(label string) { + ctx.bm.UseTransport(label) +} + func Quit() { if ctx.autostart != nil { ctx.autostart.Disable() |