minor usenet fixes
This commit is contained in:
@@ -18,7 +18,7 @@ if (service_config.local_nntp_port && wtvnewsserver) {
|
||||
if (service_config.upstream_auth)
|
||||
wtvnews.initializeUsenet(service_config.upstream_address, service_config.upstream_port, service_config.upstream_tls || null, service_config.upstream_auth.username || null, service_config.upstream_auth.password || null);
|
||||
else
|
||||
wtvnews.initializeUsenet(service_config.upstream_address, service_configupstream_port, service_config.upstream_tls || null);
|
||||
wtvnews.initializeUsenet(service_config.upstream_address, service_config.upstream_port, service_config.upstream_tls || null);
|
||||
}
|
||||
|
||||
async function throwError(e) {
|
||||
|
||||
@@ -1923,9 +1923,9 @@ Object.keys(minisrv_config.services).forEach(function (k) {
|
||||
wtvnewsserver = new WTVNewsServer(minisrv_config, minisrv_config.services[k].local_nntp_port);
|
||||
console.log(" * Configured Service: Local NNTP", "on 127.0.0.1:" + minisrv_config.services[k].local_nntp_port, "(TLS) - Auth required:", local_nntp_using_auth, "- Auth: None");
|
||||
}
|
||||
if (minisrv_config.services["wtv-news"].featuredGroups) {
|
||||
Object.keys(minisrv_config.services["wtv-news"].featuredGroups).forEach((k) => {
|
||||
wtvnewsserver.createGroup(minisrv_config.services["wtv-news"].featuredGroups[k].group);
|
||||
if (minisrv_config.services[k].featuredGroups) {
|
||||
Object.keys(minisrv_config.services[k].featuredGroups).forEach((j) => {
|
||||
wtvnewsserver.createGroup(minisrv_config.services[k].featuredGroups[j].group);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@ class WTVNewsServer {
|
||||
const nntp_server = require('nntp-server');
|
||||
var nntp_statuses = require('nntp-server/lib/status');
|
||||
|
||||
this.username == username || null;
|
||||
this.password == password || null;
|
||||
this.username = username || null;
|
||||
this.password = password || null;
|
||||
this.using_auth = using_auth;
|
||||
if (using_auth && (!username && !password)) {
|
||||
// using auth, but no auth info specified, so randomly generate it
|
||||
|
||||
Reference in New Issue
Block a user