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 6ed7ad2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ module.exports = {
port: 6697,
password: "",
tls: true,
rejectUnauthorized: false,
rejectUnauthorized: true,
nick: "Troll%%%",
username: "Anonymous Troll",
realname: "",
Expand Down
5 changes: 5 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,10 @@ 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');
log.warn(transport.socket.authorizationError);

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

0 comments on commit 6ed7ad2

Please sign in to comment.