Fallback to bouncer network host if name is unset

This commit is contained in:
Simon Ser 2021-10-15 18:23:56 +02:00
parent 8bdde589bb
commit a31976586c

View file

@ -71,7 +71,7 @@ export function getServerName(server, bouncerNetwork, isBouncer) {
// User has picked a custom name for the network, use that // User has picked a custom name for the network, use that
return bouncerNetwork.name; return bouncerNetwork.name;
} }
return netName || bouncerNetwork.name || "server"; return netName || bouncerNetwork.name || bouncerNetwork.host || "server";
} }
if (isBouncer) { if (isBouncer) {
return "bouncer"; return "bouncer";