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

BLAH.

parent 993e38b2
No related branches found
No related tags found
No related merge requests found
......@@ -410,7 +410,8 @@ try {
var rlogin_addr = '127.0.0.1';
} else {
var rlogin_addr = ini.RLoginInterface.split(/,/)[0];
if (parseInt(rlogin_addr.replace(/[^\d]/g, '') == 0)) rlogin_addr = '127.0.0.1';
var ra = parseInt(rlogin_addr.replace(/[^\d]/g, ''));
if (isNaN(ra) || ra == 0) rlogin_addr = '127.0.0.1';
}
rlogin = new RLoginClient(
......
......@@ -233,7 +233,8 @@ try {
var telnet_addr = '127.0.0.1';
} else {
var telnet_addr = ini.TelnetInterface.split(/,/)[0];
if (parseInt(telnet_addr.replace(/[^\d]/g, '') == 0)) telnet_addr = '127.0.0.1';
var ta = parseInt(telnet_addr.replace(/[^\d]/g, '') == 0);
if (isNaN(ta) || ta == 0) telnet_addr = '127.0.0.1';
}
var wss = new WebSocketProxy(client);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment