diff options
author | Ruben Pollan <meskio@sindominio.net> | 2021-03-24 12:47:02 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-05-04 14:58:39 +0200 |
commit | 4e1f3a4f88136e497962e4f976d5c7f216c31a15 (patch) | |
tree | 86fd6aea30aca3753b5be785eb684cbb3d205e6b /pkg/backend/api.go | |
parent | b14d048e6089233f5c698426652e85bfa1d89488 (diff) |
Let's rename the API to use location instead of gateway
Diffstat (limited to 'pkg/backend/api.go')
-rw-r--r-- | pkg/backend/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/backend/api.go b/pkg/backend/api.go index 761c03d..f1fed57 100644 --- a/pkg/backend/api.go +++ b/pkg/backend/api.go @@ -57,8 +57,8 @@ func SwitchOff() { // TODO implement Reconnect - do not tear whole fw down in between -func UseGateway(label string) { - ctx.bm.UseGateway(string(label)) +func UseLocation(label string) { + ctx.bm.UseGateway(label) time.Sleep(200 * time.Millisecond) SwitchOff() time.Sleep(500 * time.Millisecond) |