Accomodate for empty BOUNCER host

BOUNCER doesn't support describing UNIX domain socket connections.
This commit is contained in:
Simon Ser committed 2021-05-27 11:51:29 +02:00
1 parent 071c2626d5
commit fa80817168
1 file changed
+2 -1
+2 -1
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 {