diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-09-02 21:38:13 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-05-04 14:58:39 +0200 |
commit | 335bb742b957370bbf40ae77a661559805ab307f (patch) | |
tree | 3d8b9a8023b1bcca2b531bf57b1fd846916f4a8e /pkg/backend/api.go | |
parent | 68f566cf7fddbe9e5eb08c4c07a76375148b682b (diff) |
[feat] expose gateway selection in webapi
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() |