summaryrefslogtreecommitdiffhomepage
path: root/gui/packages
diff options
context:
space:
mode:
Diffstat (limited to 'gui/packages')
-rw-r--r--gui/packages/desktop/src/renderer/containers/ConnectPage.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/packages/desktop/src/renderer/containers/ConnectPage.js b/gui/packages/desktop/src/renderer/containers/ConnectPage.js
index a1390fab6f..828d92959e 100644
--- a/gui/packages/desktop/src/renderer/containers/ConnectPage.js
+++ b/gui/packages/desktop/src/renderer/containers/ConnectPage.js
@@ -36,6 +36,15 @@ function getRelayName(
return city.name;
}
}
+ } else if (location.hostname) {
+ const [countryCode, cityCode, hostname] = location.hostname;
+ const country = relayLocations.find(({ code }) => code === countryCode);
+ if (country) {
+ const city = country.cities.find(({ code }) => code === cityCode);
+ if (city) {
+ return `${city.name} (${hostname})`;
+ }
+ }
}
return 'Unknown';