diff options
author | Ruben Pollan <meskio@sindominio.net> | 2021-03-23 17:10:45 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-05-04 14:58:39 +0200 |
commit | b14d048e6089233f5c698426652e85bfa1d89488 (patch) | |
tree | b1542d03377740f7335c9848a751ad16426632f0 /pkg/bitmask | |
parent | 8c4edf29112a32f267d19717637bf2104c28b969 (diff) |
Don't expose the full gateway out of the vpn module
We just care about locations and fullness.
Diffstat (limited to 'pkg/bitmask')
-rw-r--r-- | pkg/bitmask/bitmask.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/bitmask/bitmask.go b/pkg/bitmask/bitmask.go index 156af58..cb7be29 100644 --- a/pkg/bitmask/bitmask.go +++ b/pkg/bitmask/bitmask.go @@ -15,10 +15,6 @@ package bitmask -import ( - "0xacab.org/leap/bitmask-vpn/pkg/vpn/bonafide" -) - type Bitmask interface { GetStatusCh() <-chan string Close() @@ -30,12 +26,10 @@ type Bitmask interface { GetStatus() (string, error) InstallHelpers() error VPNCheck() (helpers bool, priviledge bool, err error) - /* this is kind of breaking the abstract interface, maybe we don't need this anymore */ - ListGatewaysByCity(protocol string) (map[string]bonafide.Gateway, error) + ListLocationFullness(protocol string) map[string]float64 UseGateway(name string) error GetCurrentGateway() string GetCurrentLocation() string - GetGatewayDetails(label string) (interface{}, error) UseTransport(transport string) error NeedsCredentials() bool DoLogin(username, password string) (bool, error) |