diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-05-28 12:26:11 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-06-01 12:31:48 +0200 |
commit | 1bd2637e3133d895d1e73931f8b3466a5761d9ef (patch) | |
tree | 1bd75f2a91f30d996030a8531fefbb29f7c41831 /pkg/backend/status.go | |
parent | c6c0209ad45fb7d2e45370ee3a39f2dd437603b0 (diff) |
[feat] expose set transport
webapi mainly for tests, but it's usable too
Diffstat (limited to 'pkg/backend/status.go')
-rw-r--r-- | pkg/backend/status.go | 3 |
1 files changed, 2 insertions, 1 deletions
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() |