summaryrefslogtreecommitdiff
path: root/pkg/vpn
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2021-03-28 18:43:21 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-05-04 14:58:39 +0200
commited529ab770ae4dc6dd79bbf819f8cf1b2dfb809b (patch)
tree05d1a0f2dfa8f49a318881cec9b8238135e5e003 /pkg/vpn
parente35d36c90bea73e77975a300ae1f5dc897d74262 (diff)
Get the list of locations as soon as possible
Diffstat (limited to 'pkg/vpn')
-rw-r--r--pkg/vpn/bonafide/bonafide.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/vpn/bonafide/bonafide.go b/pkg/vpn/bonafide/bonafide.go
index 4e1db74..212361f 100644
--- a/pkg/vpn/bonafide/bonafide.go
+++ b/pkg/vpn/bonafide/bonafide.go
@@ -225,6 +225,10 @@ func (b *Bonafide) GetAllGateways(transport string) ([]Gateway, error) {
}
func (b *Bonafide) ListLocationFullness(transport string) map[string]float64 {
+ err := b.maybeInitializeEIP()
+ if err != nil {
+ log.Println("Error fetching eip-service.json:", err)
+ }
return b.gateways.listLocationFullness(transport)
}