dshost-plugin 0.1.17 → 0.1.19
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 +5 -4
- 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 {
|
|
@@ -1436,7 +1436,8 @@ export function startAgent(opts) {
|
|
|
1436
1436
|
const pc = new werift.RTCPeerConnection({
|
|
1437
1437
|
iceServers: [
|
|
1438
1438
|
{ urls: 'stun:stun.cloudflare.com:3478' },
|
|
1439
|
-
{ urls: 'stun:stun.
|
|
1439
|
+
{ urls: 'stun:stun.qq.com:3478' },
|
|
1440
|
+
{ urls: 'stun:stun.miwifi.com:3478' },
|
|
1440
1441
|
],
|
|
1441
1442
|
});
|
|
1442
1443
|
|
package/package.json
CHANGED