From 335bb742b957370bbf40ae77a661559805ab307f Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Wed, 2 Sep 2020 21:38:13 +0200 Subject: [feat] expose gateway selection in webapi --- pkg/bitmask/bitmask.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/bitmask') diff --git a/pkg/bitmask/bitmask.go b/pkg/bitmask/bitmask.go index adfc849..7ffe01a 100644 --- a/pkg/bitmask/bitmask.go +++ b/pkg/bitmask/bitmask.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 LEAP +// Copyright (C) 2018-2020 LEAP // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -28,6 +28,7 @@ type Bitmask interface { VPNCheck() (helpers bool, priviledge bool, err error) ListGateways(provider string) ([]string, error) UseGateway(name string) error + GetCurrentGateway() string UseTransport(transport string) error NeedsCredentials() bool DoLogin(username, password string) (bool, error) -- cgit v1.2.3