charon-hooks 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1249,7 +1249,7 @@ async function startTunnel(config, port = 3e3) {
|
|
|
1249
1249
|
try {
|
|
1250
1250
|
const currentState = getTunnelState(db2);
|
|
1251
1251
|
const targetDomain = config.domain || null;
|
|
1252
|
-
if (currentState.connected && currentState.domain === targetDomain) {
|
|
1252
|
+
if (listener && currentState.connected && currentState.domain === targetDomain) {
|
|
1253
1253
|
if (currentState.expose_ui !== (config.expose_ui ?? false)) {
|
|
1254
1254
|
console.log(`[tunnel] Updating expose_ui to ${config.expose_ui ?? false}`);
|
|
1255
1255
|
const updatedState = {
|