fix: correct SSL cert for custom TLDs and immediate PAC update on vhost changes
CI / Build & Test (push) Successful in 3m18s
CI / Build & Test (push) Successful in 3m18s
- Replace SNI callback approach (unsupported by bare-tls) with a multi-SAN wildcard cert covering all active base domains (e.g. *.hole.sail, *.heheh.jungle) - Add buildMultiSanCert() in https-proxy.js — cert key encodes sorted domain list so cache invalidates automatically when TLDs are added or removed - Add restart(baseDomains, callback) to https-proxy.js to stop and restart the proxy with a fresh cert without requiring a native host restart - Add getActiveBaseDomains() and refreshProxyCert() in host.js; call after every successful setVirtualHost and removeVirtualHost - Fix background.js send handler to fetch updated virtualHosts via getState and re-apply PAC immediately after setVirtualHost or removeVirtualHost succeeds, so new TLDs are routed without waiting for the next dashboard refresh - Remove unused tls require from https-proxy.js - Remove invalid "permissions" entry from manifest.json permissions array
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
"notifications",
|
||||
"tabs",
|
||||
"declarativeNetRequest",
|
||||
"proxy",
|
||||
"permissions"
|
||||
"proxy"
|
||||
],
|
||||
"action": {
|
||||
"default_title": "Holesail Dashboard",
|
||||
|
||||
Reference in New Issue
Block a user