diff options
| author | David Lönnhager <david.l@mullvad.net> | 2025-09-24 12:58:54 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2025-09-30 16:09:04 +0200 |
| commit | e0e4e89822f06f05d7484dfd0e353902bb2816f8 (patch) | |
| tree | b155fb0ca4ffca2836ecc2e867ce228eb6d53dd2 /desktop/packages | |
| parent | 2f5dc7fd40898db547b4560d028774c9cc602630 (diff) | |
| download | mullvadvpn-e0e4e89822f06f05d7484dfd0e353902bb2816f8.tar.xz mullvadvpn-e0e4e89822f06f05d7484dfd0e353902bb2816f8.zip | |
Add feature indicator for LWO
Diffstat (limited to 'desktop/packages')
4 files changed, 14 insertions, 0 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts b/desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts index d691973775..f4a8945bc6 100644 --- a/desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts +++ b/desktop/packages/mullvad-vpn/src/main/grpc-type-convertions.ts @@ -412,6 +412,8 @@ function convertFromFeatureIndicator( return FeatureIndicator.shadowsocks; case grpcTypes.FeatureIndicator.QUIC: return FeatureIndicator.quic; + case grpcTypes.FeatureIndicator.LWO: + return FeatureIndicator.lwo; } } diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/views/main/components/connection-panel/components/feature-indicators/hooks/use-get-feature-indicator/useGetFeatureIndicator.ts b/desktop/packages/mullvad-vpn/src/renderer/components/views/main/components/connection-panel/components/feature-indicators/hooks/use-get-feature-indicator/useGetFeatureIndicator.ts index e8cb982c88..3d285439b4 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/components/views/main/components/connection-panel/components/feature-indicators/hooks/use-get-feature-indicator/useGetFeatureIndicator.ts +++ b/desktop/packages/mullvad-vpn/src/renderer/components/views/main/components/connection-panel/components/feature-indicators/hooks/use-get-feature-indicator/useGetFeatureIndicator.ts @@ -190,6 +190,10 @@ export const useGetFeatureIndicator = () => { label: messages.pgettext('wireguard-settings-view', 'Obfuscation'), onClick: gotoObfuscation, }, + [FeatureIndicator.lwo]: { + label: messages.pgettext('wireguard-settings-view', 'Obfuscation'), + onClick: gotoObfuscation, + }, [FeatureIndicator.multihop]: { label: // TRANSLATORS: This refers to the multihop setting in the VPN settings view. This is diff --git a/desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts b/desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts index f1c3dd8ac4..ab7773d1a3 100644 --- a/desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts +++ b/desktop/packages/mullvad-vpn/src/shared/daemon-rpc-types.ts @@ -232,6 +232,7 @@ export enum FeatureIndicator { udp2tcp, shadowsocks, quic, + lwo, lanSharing, dnsContentBlockers, customDns, diff --git a/desktop/packages/mullvad-vpn/test/e2e/mocked/feature-indicators/feature-indicators.spec.ts b/desktop/packages/mullvad-vpn/test/e2e/mocked/feature-indicators/feature-indicators.spec.ts index 89135a50b9..72fb1e7d61 100644 --- a/desktop/packages/mullvad-vpn/test/e2e/mocked/feature-indicators/feature-indicators.spec.ts +++ b/desktop/packages/mullvad-vpn/test/e2e/mocked/feature-indicators/feature-indicators.spec.ts @@ -77,6 +77,13 @@ const featureIndicatorWithOption: FeatureIndicatorWithOptionTestOption[] = [ option: { name: 'Obfuscation', type: 'listbox' }, }, { + testId: 'LWO', + featureIndicator: FeatureIndicator.lwo, + route: RoutePath.wireguardSettings, + featureIndicatorLabel: 'Obfuscation', + option: { name: 'Obfuscation', type: 'listbox' }, + }, + { testId: 'multihop', featureIndicator: FeatureIndicator.multihop, route: RoutePath.multihopSettings, |
