From 1bd2637e3133d895d1e73931f8b3466a5761d9ef Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 28 May 2021 12:26:11 +0200 Subject: [feat] expose set transport webapi mainly for tests, but it's usable too --- pkg/backend/status.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/backend/status.go') diff --git a/pkg/backend/status.go b/pkg/backend/status.go index bdbdd35..1ec5c4f 100644 --- a/pkg/backend/status.go +++ b/pkg/backend/status.go @@ -57,7 +57,8 @@ type connectionCtx struct { func (c *connectionCtx) toJson() ([]byte, error) { statusMutex.Lock() if c.bm != nil { - c.Locations = c.bm.ListLocationFullness("openvpn") + transport := c.bm.GetTransport() + c.Locations = c.bm.ListLocationFullness(transport) c.CurrentGateway = c.bm.GetCurrentGateway() c.CurrentLocation = c.bm.GetCurrentLocation() c.CurrentCountry = c.bm.GetCurrentCountry() -- cgit v1.2.3