summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2024-04-08 08:10:06 +0200
committerOskar Nyberg <oskar@mullvad.net>2024-04-11 17:21:23 +0200
commitcc37b2033af9e4e1665fabf195ca345a6e7061a7 (patch)
tree283f18779ad0fafed27651d991934eef90d1dde4
parentab25e130af693d7a27fcff061fdaa3cfdbc4541a (diff)
downloadmullvadvpn-cc37b2033af9e4e1665fabf195ca345a6e7061a7.tar.xz
mullvadvpn-cc37b2033af9e4e1665fabf195ca345a6e7061a7.zip
Add provider and ownership to bridgesettings
-rw-r--r--gui/src/renderer/app.tsx2
-rw-r--r--gui/src/renderer/redux/settings/reducers.ts5
2 files changed, 7 insertions, 0 deletions
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx
index 5e2c574d79..a8c1901ae8 100644
--- a/gui/src/renderer/app.tsx
+++ b/gui/src/renderer/app.tsx
@@ -657,6 +657,8 @@ export default class AppRenderer {
type: bridgeSettings.type,
normal: {
location: liftConstraint(bridgeSettings.normal.location),
+ providers: bridgeSettings.normal.providers,
+ ownership: bridgeSettings.normal.ownership,
},
custom: bridgeSettings.custom,
});
diff --git a/gui/src/renderer/redux/settings/reducers.ts b/gui/src/renderer/redux/settings/reducers.ts
index 07502ab280..210ef38010 100644
--- a/gui/src/renderer/redux/settings/reducers.ts
+++ b/gui/src/renderer/redux/settings/reducers.ts
@@ -42,6 +42,9 @@ export type NormalRelaySettingsRedux = {
export type NormalBridgeSettingsRedux = {
location: LiftedConstraint<RelayLocation>;
+ // Providers and ownership are used to filter bridges and as bridge constraints for the daemon.
+ providers: string[];
+ ownership: Ownership;
};
export type RelaySettingsRedux =
@@ -150,6 +153,8 @@ const initialState: ISettingsReduxState = {
type: 'normal',
normal: {
location: 'any',
+ providers: [],
+ ownership: Ownership.any,
},
custom: undefined,
},