summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-01-04 10:35:16 +0100
committerOskar Nyberg <oskar@mullvad.net>2022-01-04 10:35:16 +0100
commit85405bdf3fe64fdade01b417debbae7d908d0f8a (patch)
treea5ebcaa8de6da83fa24fdfd0b8adc4be9a9170c6
parentc372d087fe76538fcf3f0e593576fc28570442c1 (diff)
parente454d49f750133725a2bff0743fec7674726128a (diff)
downloadmullvadvpn-85405bdf3fe64fdade01b417debbae7d908d0f8a.tar.xz
mullvadvpn-85405bdf3fe64fdade01b417debbae7d908d0f8a.zip
Merge branch 'wireguard-ui-fixes'
-rw-r--r--gui/src/renderer/components/LocationList.tsx4
-rw-r--r--gui/src/renderer/containers/SelectLocationPage.tsx6
2 files changed, 5 insertions, 5 deletions
diff --git a/gui/src/renderer/components/LocationList.tsx b/gui/src/renderer/components/LocationList.tsx
index 855efdc066..be29c2c1dc 100644
--- a/gui/src/renderer/components/LocationList.tsx
+++ b/gui/src/renderer/components/LocationList.tsx
@@ -430,10 +430,10 @@ export class RelayLocations extends React.PureComponent<
),
};
})
- .sort((a, b) => a.name.localeCompare(b.name, this.props.locale)),
+ .sort((a, b) => a.label.localeCompare(b.label, this.props.locale)),
};
})
- .sort((a, b) => a.name.localeCompare(b.name, this.props.locale));
+ .sort((a, b) => a.label.localeCompare(b.label, this.props.locale));
}
private formatRowName(
diff --git a/gui/src/renderer/containers/SelectLocationPage.tsx b/gui/src/renderer/containers/SelectLocationPage.tsx
index 1effeac473..e6c2199820 100644
--- a/gui/src/renderer/containers/SelectLocationPage.tsx
+++ b/gui/src/renderer/containers/SelectLocationPage.tsx
@@ -30,12 +30,12 @@ const mapStateToProps = (state: IReduxState, props: IHistoryProps & IAppContext)
if (tunnelProtocol === 'openvpn' && 'normal' in state.settings.bridgeSettings) {
selectedBridgeLocation = state.settings.bridgeSettings.normal.location;
} else if ('normal' in relaySettings) {
+ multihopEnabled = relaySettings.normal.wireguard.useMultihop;
+
const entryLocation = relaySettings.normal.wireguard.entryLocation;
- if (entryLocation !== 'any') {
+ if (multihopEnabled && entryLocation !== 'any') {
selectedEntryLocation = entryLocation;
}
-
- multihopEnabled = relaySettings.normal.wireguard.useMultihop;
}
const allowEntrySelection =