summaryrefslogtreecommitdiff
path: root/pkg/bitmask
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-03-17 23:46:46 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-05-04 14:58:39 +0200
commit3baa3b7eba9696e69958c89a2b004a219f8c8d00 (patch)
tree3affa0d1ae5a8dfb1dcdce3031f19b2d00700447 /pkg/bitmask
parent67bdccaac5e095301bc3841d85c3a94bad2db144 (diff)
fix filter gws by transport
Diffstat (limited to 'pkg/bitmask')
-rw-r--r--pkg/bitmask/bitmask.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/bitmask/bitmask.go b/pkg/bitmask/bitmask.go
index e284541..156af58 100644
--- a/pkg/bitmask/bitmask.go
+++ b/pkg/bitmask/bitmask.go
@@ -15,6 +15,10 @@
package bitmask
+import (
+ "0xacab.org/leap/bitmask-vpn/pkg/vpn/bonafide"
+)
+
type Bitmask interface {
GetStatusCh() <-chan string
Close()
@@ -26,9 +30,11 @@ type Bitmask interface {
GetStatus() (string, error)
InstallHelpers() error
VPNCheck() (helpers bool, priviledge bool, err error)
- ListGatewaysByCity(provider string) (map[string]string, error)
+ /* this is kind of breaking the abstract interface, maybe we don't need this anymore */
+ ListGatewaysByCity(protocol string) (map[string]bonafide.Gateway, error)
UseGateway(name string) error
GetCurrentGateway() string
+ GetCurrentLocation() string
GetGatewayDetails(label string) (interface{}, error)
UseTransport(transport string) error
NeedsCredentials() bool