Accomodate for empty BOUNCER host

BOUNCER doesn't support describing UNIX domain socket connections.
This commit is contained in:
Simon Ser 2021-05-27 11:51:29 +02:00
parent 071c2626d5
commit fa80817168

View file

@ -59,7 +59,8 @@ export default function BufferHeader(props) {
description = "Bouncer connecting to network...";
break;
case "connected":
description = `Connected to ${props.bouncerNetwork.host}`;
// host can be undefined e.g. when using UNIX domain sockets
description = `Connected to ${props.bouncerNetwork.host || "network"}`;
break;
}
} else {