diff options
| -rw-r--r-- | gui/src/renderer/components/LocationList.tsx | 4 | ||||
| -rw-r--r-- | gui/src/renderer/containers/SelectLocationPage.tsx | 6 |
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 = |
