diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-12-05 19:10:21 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-04-16 14:43:19 +0200 |
| commit | ee841c08bc6fa76e6147296ac43266aff963f5b8 (patch) | |
| tree | 62a0080f92d2374382327ec239c6ba54eca8cf31 /gui/src/renderer/lib | |
| parent | f099a103565f04c18222a8d86025db4e4b2d777d (diff) | |
| download | mullvadvpn-ee841c08bc6fa76e6147296ac43266aff963f5b8.tar.xz mullvadvpn-ee841c08bc6fa76e6147296ac43266aff963f5b8.zip | |
Add daita filtering of relay list
Diffstat (limited to 'gui/src/renderer/lib')
| -rw-r--r-- | gui/src/renderer/lib/filter-locations.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/src/renderer/lib/filter-locations.ts b/gui/src/renderer/lib/filter-locations.ts index 63ca56cbf2..802748680a 100644 --- a/gui/src/renderer/lib/filter-locations.ts +++ b/gui/src/renderer/lib/filter-locations.ts @@ -27,6 +27,15 @@ export function filterLocationsByEndPointType( return filterLocationsImpl(locations, getTunnelProtocolFilter(endpointType, relaySettings)); } +export function filterLocationsByDaita( + locations: IRelayLocationCountryRedux[], + daita: boolean, +): IRelayLocationCountryRedux[] { + return daita + ? filterLocationsImpl(locations, (relay: IRelayLocationRelayRedux) => relay.daita) + : locations; +} + export function filterLocations( locations: IRelayLocationCountryRedux[], ownership?: Ownership, |
