Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 012a3d49 authored by echicken's avatar echicken

GetInterface for empty/all sbbs.ini *Interface values.

parent 0bef3f2f
......@@ -136,17 +136,22 @@ function UsingSecondRLoginName() {
return (FBBSOptions.indexOf("USE_2ND_RLOGIN") !== -1);
}
function GetInterface(i) {
if (['', '0.0.0.0', '::'].indexOf(i) > -1) return 'localhost';
return i;
}
function GetGlobalInterface() {
GetSBBSIniValues();
return FGlobalInterface == '' ? 'localhost' : FGlobalInterface;
return GetInterface(FGlobalInterface);
}
function GetTelnetInterface() {
GetSBBSIniValues();
return FTelnetInterface == '' ? GetGlobalInterface() : FTelnetInterface;
return GetInterface(FTelnetInterface);
}
function GetRLoginInterface() {
GetSBBSIniValues();
return FRLoginInterface == '' ? GetGlobalInterface() : FRLoginInterface;
return GetInterface(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