From 4e1f3a4f88136e497962e4f976d5c7f216c31a15 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 24 Mar 2021 12:47:02 +0100 Subject: Let's rename the API to use location instead of gateway --- pkg/backend/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/backend/api.go') 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) -- cgit v1.2.3