dshost-plugin 0.1.17 → 0.1.18
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/lib/core.js +3 -3
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -336,7 +336,7 @@ export function collectSystemInfo(defaultVersion, lanBridgeInfo = null) {
|
|
|
336
336
|
const meta = detectDshMetadata();
|
|
337
337
|
const candidates = collectCandidateIpv4s();
|
|
338
338
|
const bridgePort = lanBridgeInfo?.port || parseInt(process.env.LAN_BRIDGE_PORT || '3088', 10);
|
|
339
|
-
const bridgeEnabled = lanBridgeInfo ? lanBridgeInfo.enabled : process.env.LAN_BRIDGE_ENABLED
|
|
339
|
+
const bridgeEnabled = lanBridgeInfo ? lanBridgeInfo.enabled : process.env.LAN_BRIDGE_ENABLED === '1';
|
|
340
340
|
return {
|
|
341
341
|
instanceId: getEffectiveInstanceId(),
|
|
342
342
|
hostname: os.hostname(),
|
|
@@ -845,9 +845,9 @@ export function startAgent(opts) {
|
|
|
845
845
|
|
|
846
846
|
if (webToken) mintAuthCookie();
|
|
847
847
|
|
|
848
|
-
// ── LAN Bridge
|
|
848
|
+
// ── LAN Bridge deprecated in favor of secure WebRTC P2P (default disabled) ──
|
|
849
849
|
const lanBridgePort = parseInt(process.env.LAN_BRIDGE_PORT || '3088', 10);
|
|
850
|
-
const lanBridgeEnabled = process.env.LAN_BRIDGE_ENABLED
|
|
850
|
+
const lanBridgeEnabled = process.env.LAN_BRIDGE_ENABLED === '1' && process.env.DSH_SERVICES_ONLY !== '1';
|
|
851
851
|
let lanBridge = null;
|
|
852
852
|
if (lanBridgeEnabled) {
|
|
853
853
|
try {
|
package/package.json
CHANGED