mirror of
https://github.com/thelounge/thelounge.git
synced 2026-03-14 06:25:49 +01:00
Merge pull request #5016 from SyntaxColoring/master
Fix spurious "insecure connection" warning by treating ::1 as localhost
This commit is contained in:
commit
b2e3112806
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ class Network {
|
|||
const transport = this.irc.connection.transport;
|
||||
|
||||
if (transport.socket) {
|
||||
const isLocalhost = transport.socket.remoteAddress === "127.0.0.1";
|
||||
const isLocalhost = ["127.0.0.1", "::1"].includes(transport.socket.remoteAddress);
|
||||
const isAuthorized = transport.socket.encrypted && transport.socket.authorized;
|
||||
|
||||
status.connected = transport.isConnected();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue