Skip to content
Snippets Groups Projects
Commit b74a3486 authored by echicken's avatar echicken :chicken:
Browse files

Ugly fix for now re: determining address to telnet to. Untested, might work.

parent db338074
Branches
Tags
No related merge requests found
......@@ -229,10 +229,11 @@ try {
var ini = f.iniGetObject('BBS');
f.close();
if (typeof ini.TelnetInterface === 'undefined' || ini.TelnetInterface === '0.0.0.0') {
var telnet_addr = '127.0.0.1';
if (typeof ini.TelnetInterface === 'undefined') {
var telnet_addr = 'localhost';
} else {
var telnet_addr = ini.TelnetInterface;
var telnet_addr = ini.TelnetInterface.split(/,/)[0];
if (parseInt(telnet_addr.replace(/[^\d]/g, '') == 0)) telnet_addr = 'localhost';
}
var wss = new WebSocketProxy(client);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment