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.
Files changed (2) hide show
  1. package/lib/core.js +5 -4
  2. 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 !== '0';
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 for local/intranet direct offload & timing-gap probing ──
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 !== '0' && process.env.DSH_SERVICES_ONLY !== '1';
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.l.google.com:19302' },
1439
+ { urls: 'stun:stun.qq.com:3478' },
1440
+ { urls: 'stun:stun.miwifi.com:3478' },
1440
1441
  ],
1441
1442
  });
1442
1443
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dshost-plugin",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "Official remote cloud relay plugin for DSHost (dshost.me): securely access your dsh Web UI from anywhere",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",