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

Commits (1)
...@@ -29,10 +29,13 @@ require("fido.js", 'FIDO'); ...@@ -29,10 +29,13 @@ require("fido.js", 'FIDO');
var cfgfile; var cfgfile;
var force_replace = false; var force_replace = false;
var use_diz_always = true; var use_diz_always = true;
var debug = false;
for (var i in argv) { for (var i in argv) {
if(argv[i] == "-force-replace") if(argv[i] == "-force-replace")
force_replace = true; force_replace = true;
else if(argv[i] == "-debug")
debug = true;
else if(argv[i][0] != '-') else if(argv[i][0] != '-')
cfgfile = argv[i]; cfgfile = argv[i];
} }
...@@ -764,17 +767,22 @@ function main() { ...@@ -764,17 +767,22 @@ function main() {
for (var i = 0; i < areas.length; i++) { for (var i = 0; i < areas.length; i++) {
var cfg = tickit.acfg[areas[i]]; var cfg = tickit.acfg[areas[i]];
if (cfg !== undefined && cfg.akamatching === true) { if (cfg !== undefined && cfg.akamatching === true) {
if(debug)
log(LOG_DEBUG, areas[i].toUpperCase()+" using area AKA match."); log(LOG_DEBUG, areas[i].toUpperCase()+" using area AKA match.");
} else if (cfg !== undefined && cfg.sourceaddress !== undefined) { } else if (cfg !== undefined && cfg.sourceaddress !== undefined) {
var aaddr = cfg.sourceaddress.toString(); var aaddr = cfg.sourceaddress.toString();
if (aaddr.indexOf("@") > -1) if (aaddr.indexOf("@") > -1)
aaddr = aaddr.slice(0,aaddr.indexOf("@")); aaddr = aaddr.slice(0,aaddr.indexOf("@"));
if(debug)
log(LOG_DEBUG, areas[i].toUpperCase()+" using area source address: "+aaddr); log(LOG_DEBUG, areas[i].toUpperCase()+" using area source address: "+aaddr);
} else if (tickit.gcfg.akamatching) { } else if (tickit.gcfg.akamatching) {
if(debug)
log(LOG_DEBUG, areas[i].toUpperCase()+" using global AKA match."); log(LOG_DEBUG, areas[i].toUpperCase()+" using global AKA match.");
} else if (tickit.gcfg.sourceaddress) { } else if (tickit.gcfg.sourceaddress) {
if(debug)
log(LOG_DEBUG, areas[i].toUpperCase()+" using global source address "+saddr); log(LOG_DEBUG, areas[i].toUpperCase()+" using global source address "+saddr);
} else { } else {
if(debug)
log(LOG_DEBUG, areas[i].toUpperCase()+" using main system address: "+saddr); log(LOG_DEBUG, areas[i].toUpperCase()+" using main system address: "+saddr);
} }
} }
......