Skip to content

Commit

Permalink
TEMP test
Browse files Browse the repository at this point in the history
  • Loading branch information
codedmonkey committed May 30, 2024
1 parent d0bf21f commit fa12bd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/models/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Client from "../client";
import {MessageType} from "../../shared/types/msg";
import {ChanType} from "../../shared/types/chan";
import {SharedNetwork} from "../../shared/types/network";
import log from '../log';

type NetworkIrcOptions = {
host: string;
Expand Down Expand Up @@ -524,6 +525,9 @@ class Network {
const isLocalhost = transport.socket.remoteAddress === "127.0.0.1";
const isAuthorized = transport.socket.encrypted && transport.socket.authorized;

log.warn(transport.socket.encrypted ? 'very encrypted' : 'no encrypted');
log.warn(transport.socket.authorized ? 'very authorized' : 'no authorized');

status.connected = transport.isConnected();
status.secure = isAuthorized || isLocalhost;
}
Expand Down

0 comments on commit fa12bd0

Please sign in to comment.