summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-03-06 14:57:20 +0100
committerMarkus Pettersson <markus.pettersson@mullvad.net>2025-03-10 10:14:20 +0100
commit05739f7beedaea536c54be287c552c3408c491e7 (patch)
treeeec6489daae354023c139f3a269d3704be028212
parent5c64b5d584dbc72acc7392196e2829ef17748a40 (diff)
downloadmullvadvpn-05739f7beedaea536c54be287c552c3408c491e7.tar.xz
mullvadvpn-05739f7beedaea536c54be287c552c3408c491e7.zip
Use helper for default normal relay settings for fallback value
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/lib/constraint-updater.ts20
1 files changed, 4 insertions, 16 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/lib/constraint-updater.ts b/desktop/packages/mullvad-vpn/src/renderer/lib/constraint-updater.ts
index 6ea021ece9..6f6a7b0850 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/lib/constraint-updater.ts
+++ b/desktop/packages/mullvad-vpn/src/renderer/lib/constraint-updater.ts
@@ -1,5 +1,6 @@
import { useCallback } from 'react';
+import { getDefaultRelaySettingsNormal } from '../../main/default-settings';
import {
BridgeSettings,
IBridgeConstraints,
@@ -48,22 +49,9 @@ export function wrapRelaySettingsOrDefault(
};
}
- return {
- location: 'any',
- tunnelProtocol: 'any',
- providers: [],
- ownership: Ownership.any,
- openvpnConstraints: {
- port: 'any',
- protocol: 'any',
- },
- wireguardConstraints: {
- port: 'any',
- ipVersion: 'any',
- useMultihop: false,
- entryLocation: 'any',
- },
- };
+ const defaultSettings = getDefaultRelaySettingsNormal();
+
+ return defaultSettings;
}
type RelaySettingsUpdateFunction = (