Commit fe5b8a1f authored by echicken's avatar echicken
Browse files

Added Get[Global,Telnet,RLogin]Interface() functions.

parent a8709616
......@@ -40,6 +40,9 @@ var FLoadedSBBSIni = false;
var FBBSOptions = "";
var FRLoginPort = -1;
var FTelnetPort = -1;
var FGlobalInterface = "";
var FRLoginInterface = "";
var FTelnetInterface = "";
// Values from services.ini
var FLoadedServicesIni = false;
......@@ -59,6 +62,9 @@ function GetSBBSIniValues() {
FBBSOptions = f.iniGetValue("BBS", "Options", "");
FRLoginPort = f.iniGetValue("BBS", "RLoginPort", -1);
FTelnetPort = f.iniGetValue("BBS", "TelnetPort", -1);
FGlobalInterface = f.iniGetValue("Global", "Interface", "");
FRLoginInterface = f.iniGetValue("BBS", "RLoginInterface", "");
FTelnetInterface = f.iniGetValue("BBS", "TelnetInterface", "");
f.close();
}
} catch (err) {
......@@ -129,3 +135,18 @@ function UsingSecondRLoginName() {
GetSBBSIniValues();
return (FBBSOptions.indexOf("USE_2ND_RLOGIN") !== -1);
}
function GetGlobalInterface() {
GetSBBSIniValues();
return FGlobalInterface == '' ? 'localhost' : FGlobalInterface;
}
function GetTelnetInterface() {
GetSBBSIniValues();
return FTelnetInterface == '' ? 'localhost' : FTelnetInterface;
}
function GetRLoginInterface() {
GetSBBSIniValues();
return FRLoginInterface == '' ? 'localhost' : FRLoginInterface;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment