summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/lib
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2024-10-04 17:12:59 +0200
committerSebastian Holmin <sebastian.holmin@mullvad.net>2024-10-07 15:40:34 +0200
commite7e77cfc14291b4d06291a1fed73a0e56924a40b (patch)
treed0d010166e114385f1e87f7bad2726c1f1bf04bb /gui/src/renderer/lib
parent0578e79afcaf6ad1158663941e05f01ce3a7c2c3 (diff)
downloadmullvadvpn-e7e77cfc14291b4d06291a1fed73a0e56924a40b.tar.xz
mullvadvpn-e7e77cfc14291b4d06291a1fed73a0e56924a40b.zip
Replace "smart routing" with "direct only" in gui code
Diffstat (limited to 'gui/src/renderer/lib')
-rw-r--r--gui/src/renderer/lib/filter-locations.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/src/renderer/lib/filter-locations.ts b/gui/src/renderer/lib/filter-locations.ts
index 661d8ecc29..e559e64096 100644
--- a/gui/src/renderer/lib/filter-locations.ts
+++ b/gui/src/renderer/lib/filter-locations.ts
@@ -37,19 +37,19 @@ export function filterLocationsByEndPointType(
export function filterLocationsByDaita(
locations: IRelayLocationCountryRedux[],
daita: boolean,
- smartRouting: boolean,
+ directOnly: boolean,
locationType: LocationType,
tunnelProtocol: LiftedConstraint<TunnelProtocol>,
multihop: boolean,
): IRelayLocationCountryRedux[] {
- return daitaFilterActive(daita, smartRouting, locationType, tunnelProtocol, multihop)
+ return daitaFilterActive(daita, directOnly, locationType, tunnelProtocol, multihop)
? filterLocationsImpl(locations, (relay: IRelayLocationRelayRedux) => relay.daita)
: locations;
}
export function daitaFilterActive(
daita: boolean,
- smartRouting: boolean,
+ directOnly: boolean,
locationType: LocationType,
tunnelProtocol: LiftedConstraint<TunnelProtocol>,
multihop: boolean,
@@ -57,7 +57,7 @@ export function daitaFilterActive(
const isEntry = multihop
? locationType === LocationType.entry
: locationType === LocationType.exit;
- return daita && (!smartRouting || multihop) && isEntry && tunnelProtocol !== 'openvpn';
+ return daita && (directOnly || multihop) && isEntry && tunnelProtocol !== 'openvpn';
}
export function filterLocations(