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/vpn/bonafide/bonafide.go | |
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/vpn/bonafide/bonafide.go')
-rw-r--r-- | pkg/vpn/bonafide/bonafide.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/pkg/vpn/bonafide/bonafide.go b/pkg/vpn/bonafide/bonafide.go index 321b47f..e0d9c9c 100644 --- a/pkg/vpn/bonafide/bonafide.go +++ b/pkg/vpn/bonafide/bonafide.go @@ -224,13 +224,8 @@ func (b *Bonafide) GetAllGateways(transport string) ([]Gateway, error) { return gws, err } -func (b *Bonafide) PickGatewayForCities(transport string) (map[string]Gateway, error) { - return b.gateways.pickGatewayForCities(transport), nil -} - -func (b *Bonafide) GetGatewayDetails(host string) (Gateway, error) { - gw, err := b.gateways.getGatewayByHost(host) - return gw, err +func (b *Bonafide) ListLocationFullness(transport string) map[string]float64 { + return b.gateways.listLocationFullness(transport) } func (b *Bonafide) SetManualGateway(label string) { |