modulize HTTP(s) proxy, add Gopher support, change how protocol-specific modules are loaded

This commit is contained in:
zefie
2026-04-23 14:46:43 -04:00
parent 1b108c64f3
commit 614b4fe5f7
6 changed files with 595 additions and 265 deletions

View File

@@ -30,7 +30,7 @@ class WTVPNM {
wtvshared = null;
sessions = new Map();
constructor(minisrv_config, service_name = 'pnm') {
constructor(...[minisrv_config, service_name]) {
this.minisrv_config = minisrv_config;
this.service_name = service_name;
this.service_config = minisrv_config.services[service_name] || {};