dsh-mobile-plugin 0.5.108 → 0.5.110

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.
@@ -93,6 +93,13 @@ function createLanProxy(opts) {
93
93
  * 同时写宿主状态并让旁路重读配置,不是这个代理的职责。
94
94
  */
95
95
  onPaired = null,
96
+ /**
97
+ * 向主进程现取「当前配对码 / 票据 / 实例号」的回调:async () => ({ pairingCode, pairingTicket, instanceId }) | null。
98
+ * 二维码是主进程按它手里那份画的,局域网配对却跑在旁车里;旁车缓存的那份一旦和主进程错开,
99
+ * 手机扫了完全正常的码也会被判「对不上」。有它就每次配对前现取一份(唯一真源);取不到再退回
100
+ * 自己缓存的那份,别把配对彻底卡死。
101
+ */
102
+ authoritativePairing = null,
96
103
  /** 读取隔离:本地镜像快照读取回调,命中时直接回(不再连主进程)。 */
97
104
  readSnapshot = () => null,
98
105
  /** 上游 SSE 的失控闸,默认见 MAX_UPSTREAM_SSE_CONNECTIONS。 */
@@ -180,6 +187,31 @@ function createLanProxy(opts) {
180
187
  ? opts.currentPairing
181
188
  : () => ({ code: pairingCode, ticket: pairingTicket });
182
189
 
190
+ /**
191
+ * 这一发校验用的配对码 / 票据 / 实例号,**以主进程为准**。
192
+ *
193
+ * 二维码由主进程按它手里的配对码与票据生成;局域网配对跑在旁车里,旁车缓存的那份只要和主
194
+ * 进程错开(刚换码换票还没下发到旁车、旁车就地更新留了旧代、旁车启动早于当前状态),手机
195
+ * 扫了完全正常的二维码也会被判「票 / 实例号对不上 → 拒绝新设备」。所以每次配对前现向主进程
196
+ * 要一份。取不到(老宿主没有这条内部路由、或一时没答上)再退回旁车缓存的那份,别把配对卡死。
197
+ */
198
+ async function resolvePairing() {
199
+ if (typeof authoritativePairing === 'function') {
200
+ try {
201
+ const next = await authoritativePairing();
202
+ if (next && typeof next === 'object' && typeof next.pairingTicket === 'string') {
203
+ return {
204
+ code: typeof next.pairingCode === 'string' && next.pairingCode ? next.pairingCode : (currentPairing().code || ''),
205
+ ticket: next.pairingTicket,
206
+ instanceId: typeof next.instanceId === 'string' && next.instanceId ? next.instanceId : instanceId,
207
+ };
208
+ }
209
+ } catch { /* 退回缓存那份 */ }
210
+ }
211
+ const cached = currentPairing();
212
+ return { code: cached.code || '', ticket: cached.ticket || '', instanceId };
213
+ }
214
+
183
215
  function log(...args) {
184
216
  onLog('[lan-proxy]', ...args);
185
217
  }
@@ -763,7 +795,7 @@ function createLanProxy(opts) {
763
795
  }
764
796
  }
765
797
  });
766
- req.on('end', () => {
798
+ req.on('end', async () => {
767
799
  if (tooLarge) return;
768
800
  try {
769
801
  const gate = pairThrottle.take();
@@ -773,6 +805,8 @@ function createLanProxy(opts) {
773
805
  return;
774
806
  }
775
807
  const input = JSON.parse(b || '{}')
808
+ // 校验用的码 / 票据 / 实例号以主进程为准(旁车缓存那份可能和二维码错开)。
809
+ const pairing = await resolvePairing();
776
810
  // 两种形状(§8.3(2)):带 `sealed` 是协议 v2,带 `code` 是旧 App。
777
811
  const sealed = typeof input?.sealed === 'string' ? input.sealed.trim() : '';
778
812
  // 与 `/pair` 同一条收口(§10.4(d)):认得协议(请求里带 `proto`)却还带
@@ -791,13 +825,17 @@ function createLanProxy(opts) {
791
825
  let pairKey = null;
792
826
  if (sealed) {
793
827
  const opened = openSealedPairRequest({
794
- ticket: currentPairing().ticket || '',
795
- instanceId,
828
+ ticket: pairing.ticket || '',
829
+ instanceId: pairing.instanceId,
796
830
  sealed,
797
831
  claimedInstanceId: typeof input.instanceId === 'string' ? input.instanceId : '',
798
832
  });
799
833
  if (!opened.ok) {
800
834
  // 解不开就是「配对失败」,与「配对码错误」同形,不给探测空间。
835
+ // 但为了能查:这条路失败 = 票据 / 实例号对不上或密文坏了;「真被策略拒」不走
836
+ // 这里(那条在下面 onApprove)。只记判别位,不落票据与实例号本身。
837
+ const claimed = typeof input.instanceId === 'string' ? input.instanceId.trim() : '';
838
+ log(`lan pair: sealed open failed ticketSet=${pairing.ticket ? 1 : 0} claimedSet=${claimed ? 1 : 0} instanceSet=${pairing.instanceId ? 1 : 0} claimedMatches=${!claimed || claimed === pairing.instanceId ? 1 : 0}`)
801
839
  pairThrottle.noteFail();
802
840
  pairDenied(res);
803
841
  return;
@@ -813,7 +851,8 @@ function createLanProxy(opts) {
813
851
  res.end(JSON.stringify({ ok: false, error: '配对码需为 6 位数字' }));
814
852
  return;
815
853
  }
816
- if (!safeEqual(code, String(currentPairing().code || ''))) {
854
+ if (!safeEqual(code, String(pairing.code || ''))) {
855
+ log('lan pair: pairing code mismatch')
817
856
  pairThrottle.noteFail();
818
857
  pairDenied(res);
819
858
  return;
@@ -840,7 +879,10 @@ function createLanProxy(opts) {
840
879
  onApprove(device)
841
880
  .then(({ approved, token, platform }) => {
842
881
  if (!approved) {
843
- // 与「配对码错误」返回同一响应,配对码不再可通过状态码探测。
882
+ // 走到这里才是「电脑真的放行策略拒绝了它」;内部没答上那条已在
883
+ // onApprove 里抛成 5xx,不会冒充这句。与「配对码错误」返回同一响应,
884
+ // 配对码不再可通过状态码探测。
885
+ log('lan pair: approval denied by host policy')
844
886
  pairDenied(res);
845
887
  return;
846
888
  }
@@ -1,4 +1,5 @@
1
- // 2026-11-24:出码把内置公用中转地址并进中转两格,给扫不上服务商线路(routes)的 iOS 兜底;宿主配置与停用逻辑不动。
1
+ // 2026-11-24:服务商的 http(s) 地址同时进 lanUrls,让不认 routes 的老包也能扫码走服务商直连;
2
+ // 内置公用中转改成「码里真没有自己的线路时才塞」的兜底,不再无条件写进每张码。
2
3
  // 2026-11-24:出码前的「有没有可用地址」收成 `pairingHasAddress`,服务商线路也算数——两个出码入口同用一处判据。
3
4
  // 2026-11-23:第三方服务商线路随二维码一起下发(通用 `routes` 一栏):以后加服务商不用再改二维码。
4
5
  // 配对二维码的 IPv6 候选为手填那条预留一席,避免被条数上限切掉。
@@ -18,7 +19,7 @@
18
19
 
19
20
  const os = require('node:os');
20
21
  // 中转地址两格的收敛:二维码里 `relayUrls[0]` 必须与 `relayUrl` 是同一个字符串。
21
- const { relayAddressesOf, PUBLIC_RELAY_URLS } = require('./core.js');
22
+ const { relayAddressesOf, PUBLIC_RELAY_URLS, isPublicRelayUrl } = require('./core.js');
22
23
  const { providerLinesOf } = require('./provider-lines.cjs');
23
24
  const {
24
25
  advertisedCandidates,
@@ -95,22 +96,33 @@ function pairingPayload(state, lanPort) {
95
96
  if (tcpLanUrl && !urls.includes(tcpLanUrl)) urls.push(tcpLanUrl);
96
97
  // 老手机只读 `relayUrl`(语义一个字没变),新手机优先读数组、没有就退化到单条。
97
98
  // `relayUrls[0]` 恒等于 `relayUrl` 这条不变式,在发进码的这一份里由下面的 codeRelays 保证。
98
- //
99
- // 2026-11-24 用户要求:出码时把内置公用中转地址并进这两格。引导页现在按地区配服务商,
100
- // 但 iOS 扫不上 routes 里的服务商地址,给一条公用地址它就能拨。只改发进二维码的这一份,
101
- // 不写回 state、不动停用逻辑:宿主配了自建的仍排在前、公用做兜底;没配中转的(新装 /
102
- // 只接服务商)码里就只有这一条公用地址,手机扫到即可连。
103
99
  const relay = relayAddressesOf(state);
104
- const codeRelays = [...relay.relayUrls];
105
- for (const url of PUBLIC_RELAY_URLS) {
106
- if (!codeRelays.includes(url)) codeRelays.push(url);
100
+ // 服务商线路:与心跳 / 总控同源,另补 Cloudflare;同址已进 lanUrls 的不重复写。
101
+ // 要在拼 codeRelays 之前算好——下面把 http 类补进 urls 后,hasHttpProviderLine 要用它。
102
+ const routes = pairingRoutes(state, new Set(urls));
103
+ // 老包不认 routes 那一栏,只认 lanUrls。把 http(s) 服务商线路按「直连」形状也写一份进
104
+ // lanUrls,老包扫码就能直接拨服务商、不再借公用中转完成配对。tcp 类的不塞——它在
105
+ // lanUrls 里会被当 http 拨不通(要靠原生裸 TCP),仍只走 routes 那条。
106
+ // 判「有没有自己的线路」用原始清单、不看去重后的 routes:服务商地址即使同时填进了手填
107
+ // 直连(同址已在 urls 里、被 pairingRoutes 跳过),用户也确实配了线路,不该再塞公用。
108
+ let hasHttpProviderLine = providerLinesOf(state).some((row) => row.transport === 'http')
109
+ || Boolean(typeof state.cloudflareUrl === 'string' && state.cloudflareUrl.trim());
110
+ for (const row of routes) {
111
+ if (row.transport === 'http' && !urls.includes(row.url)) urls.push(row.url);
112
+ }
113
+ // 老包能自己拨的线路:自建中转(codeRelays)或 http 服务商线路。只有这两类都不存在时,
114
+ // 公用中转才是「新装机器首次配对」唯一的通道,才写进码里。一旦配了其中任一类,码里一条
115
+ // 公用都不留:配对落在自己的线路上,不再持续压公用中转。
116
+ const codeRelays = [...relay.relayUrls].filter((url) => !isPublicRelayUrl(url));
117
+ if (codeRelays.length === 0 && !hasHttpProviderLine) {
118
+ for (const url of PUBLIC_RELAY_URLS) {
119
+ if (!codeRelays.includes(url)) codeRelays.push(url);
120
+ }
107
121
  }
108
122
  const codeRelayUrl = codeRelays[0] || '';
109
123
  // **只有一条时不写数组**:那个数组恒等于单值,写进去是同一串地址在码里出现两遍,
110
- // 白占七八个模块。追加公用后通常仍只有一条,省下来的这几格最划算。
124
+ // 白占七八个模块。只在纯公用兜底时才是一条,省下来的这几格最划算。
111
125
  const relayList = codeRelays.length > 1 ? codeRelays : undefined;
112
- // 服务商线路:与心跳 / 总控同源,另补 Cloudflare;同址已进 lanUrls 的不重复写。
113
- const routes = pairingRoutes(state, new Set(urls));
114
126
  const payload = {
115
127
  type: 'dsh-pair',
116
128
  version: 1,
@@ -450,6 +450,27 @@ function registerControlPlaneRoutes(deps) {
450
450
  try { await syncSidecar() } catch { /* 旁路不可达时下次 configure 会带上新值 */ }
451
451
  return sendJson(res, 200, { ok: true, data: next })
452
452
  } })
453
+ /**
454
+ * 局域网配对校验的**唯一真源**:旁车在解手机配对请求前,向主进程现取当前的配对码 / 票据 / 实例号。
455
+ *
456
+ * 为什么需要:二维码由主进程按它手里的码和票据生成,局域网配对却跑在旁车子进程里。旁车自己
457
+ * 缓存的那份只要和主进程错开(换码换票还没下发到旁车、旁车就地更新 / 重建留了旧代、启动早于
458
+ * 当前状态),手机扫了完全正常的二维码也会被判「票 / 实例号对不上 → 拒绝新设备」,表现就是
459
+ * 「能扫上却配不上」,而且只在旁车落后的那台机器上出现、开发机刷新过就看不出来。让旁车现取,
460
+ * 两边就只有一个源。
461
+ *
462
+ * 身份同 `/internal/approval`:sidecarToken,不走 localOnly(没有本机 socket 可言)。
463
+ */
464
+ registerRoute({ kind: 'exact', path: '/api/relay/internal/pairing', handler: async (req, res) => {
465
+ if (req.headers.authorization !== `Bearer ${sidecarToken}`) return sendJson(res, 401, { error: 'unauthorized' })
466
+ return sendJson(res, 200, {
467
+ data: {
468
+ pairingCode: String(state.pairingCode || ''),
469
+ pairingTicket: String(state.pairingTicket || ''),
470
+ instanceId: String(state.instanceId || ''),
471
+ },
472
+ })
473
+ } })
453
474
  // 控制面状态里额外带上面板页的绝对地址:客户端半边(lib/client.js)那一项现在只是
454
475
  // 一个「打开配置页面」的入口,链接必须是绝对的(原因见 panelUrlOf)。地址只在这里
455
476
  // 补,不动 createStatusView —— 那份 JSON 手机端也在读,127.0.0.1 的地址对它没意义。
@@ -497,12 +497,18 @@ function openTunnel(route, race = null) {
497
497
  markOutdated(current)
498
498
  },
499
499
  onPairRequest: async (message) => {
500
+ let result
500
501
  try {
501
- const result = await parentJson('/api/relay/internal/approval', { device: message.device || {} })
502
- if (tunnel !== current) return
503
- if (result.approved) current.sendPairConfirm(message.requestId, true, core.signLanToken(config.lanSecret, config.instanceId, core.MOBILE_BEARER_TTL_SEC), result.platform)
504
- else current.sendPairConfirm(message.requestId, false)
505
- } catch { if (tunnel === current) current.sendPairConfirm(message.requestId, false) }
502
+ result = await parentJson('/api/relay/internal/approval', { device: message.device || {} })
503
+ } catch (error) {
504
+ // 与局域网那条同一个口径:内部没答上 ≠ 电脑拒绝。记下真因,别再静默当成拒绝。
505
+ process.stderr.write(`[dsh-ai-hub sidecar] tunnel pair approval RPC failed: ${error && error.message ? error.message : error}\n`)
506
+ if (tunnel === current) current.sendPairConfirm(message.requestId, false)
507
+ return
508
+ }
509
+ if (tunnel !== current) return
510
+ if (result.approved) current.sendPairConfirm(message.requestId, true, core.signLanToken(config.lanSecret, config.instanceId, core.MOBILE_BEARER_TTL_SEC), result.platform)
511
+ else current.sendPairConfirm(message.requestId, false)
506
512
  },
507
513
  onLog: (...args) => process.stderr.write(`[dsh-ai-hub sidecar] ${args.join(' ')}\n`),
508
514
  })
@@ -740,6 +746,14 @@ async function startLan() {
740
746
  // 配对码与票据走取值器:配对成功之后宿主会换掉它们(§5.1),而重建局域网代理会把
741
747
  // 刚握上的连接全掐掉 —— 换值不该动监听。
742
748
  currentPairing: () => ({ code: config.pairingCode, ticket: config.pairingTicket || '' }),
749
+ // 校验用的配对码 / 票据 / 实例号每次配对现向主进程要:二维码是主进程画的,旁车缓存那份
750
+ // 只要和主进程错开,扫了正常的码也会被判「对不上」。取不到就退回上面的缓存(老宿主兼容)。
751
+ authoritativePairing: async () => {
752
+ try {
753
+ const next = await parentJson('/api/relay/internal/pairing', {})
754
+ return next && typeof next === 'object' ? next : null
755
+ } catch { return null }
756
+ },
743
757
  // 新配对权限档位(电脑侧选定):局域网这条配对入口按它展开权限位。
744
758
  pairingTier: config.pairingTier || 'full',
745
759
  upstreamPort: config.upstreamPort,
@@ -758,14 +772,24 @@ async function startLan() {
758
772
  return result.data || result
759
773
  },
760
774
  onApprove: async (device) => {
775
+ let result
761
776
  try {
762
- const result = await parentJson('/api/relay/internal/approval', { device: device || {} })
763
- return {
764
- approved: Boolean(result.approved),
765
- token: result.approved ? core.signLanToken(config.lanSecret, config.instanceId, core.MOBILE_BEARER_TTL_SEC) : null,
766
- platform: typeof result.platform === 'string' ? result.platform : null,
767
- }
768
- } catch { return { approved: false, token: null } }
777
+ result = await parentJson('/api/relay/internal/approval', { device: device || {} })
778
+ } catch (error) {
779
+ // 「问主进程放不放行」这一发自己挂了(启动 / 重配那几秒、内部超时、父进程忙),
780
+ // **不能**当成「电脑拒绝了这台手机」:那会把一次几秒钟的抖动说成用户解决不了的
781
+ // 问题,手机上看到的还和真拒绝一字不差(「码不对 / 电脑拒绝新设备」)。抛出去,
782
+ // 由接入层回一个「暂时没准备好」的失败让手机重试;真因写进日志,下次可观。
783
+ process.stderr.write(`[dsh-ai-hub sidecar] lan pair approval RPC failed: ${error && error.message ? error.message : error}\n`)
784
+ const wrapped = new Error('approval-unavailable')
785
+ wrapped.code = 'approval-unavailable'
786
+ throw wrapped
787
+ }
788
+ return {
789
+ approved: Boolean(result.approved),
790
+ token: result.approved ? core.signLanToken(config.lanSecret, config.instanceId, core.MOBILE_BEARER_TTL_SEC) : null,
791
+ platform: typeof result.platform === 'string' ? result.platform : null,
792
+ }
769
793
  },
770
794
  }),
771
795
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mobile-plugin",
3
- "version": "0.5.108",
3
+ "version": "0.5.110",
4
4
  "description": "Mobile API (/api/mobile/v1) and relay client for the DSH mobile app — desktop profile build (dsh 0.2.x, peers resolved by the host)",
5
5
  "license": "MIT",
6
6
  "icon": "./icon.png",
@@ -117,23 +117,23 @@
117
117
  "yaml": "2.9.1"
118
118
  },
119
119
  "dshMobileReleaseNotes": {
120
- "version": "0.5.108",
120
+ "version": "0.5.110",
121
121
  "kinds": [
122
122
  "fix",
123
- "feature"
123
+ "other"
124
124
  ],
125
125
  "notes": {
126
- "zh-Hans": "- 修复插件卡在旧版不自动更新的问题:电脑判断有没有新版现在和真正安装走同一个来源,不会再出现「手机上有提示、电脑上却一直不动」。\n- App 现在每隔半小时检查一次插件新版,一直开着也能收到更新提示,不用再切到后台再回来。\n- 插件更新完成后会自动清掉页面上残留的「更新 / 稍后再说」;设备多的时候,更新页可以一次把所有设备一起更新。",
127
- "zh-Hant": "- 修復外掛卡在舊版不自動更新的問題:電腦判斷有沒有新版現在和真正安裝走同一個來源,不會再出現「手機上有提示、電腦上卻一直不動」。\n- App 現在每隔半小時檢查一次外掛新版,一直開著也能收到更新提示,不用再切到背景再回來。\n- 外掛更新完成後會自動清掉頁面上殘留的「更新 / 稍後再說」;裝置多的時候,更新頁可以一次把所有裝置一起更新。",
128
- "en": "- Fixed a bug where the plugin could get stuck on an old version and never auto-update: the computer now checks for new versions from the same source it installs from, so the phone can show an update while the computer stays put no longer happens.\n- The app now checks for plugin updates every 30 minutes, so you'll get the notification even if you leave it open — no need to send it to the background and come back.\n- After an update finishes, the leftover \"Update / Later\" buttons are cleared automatically; with many devices, the update page can update them all at once.",
129
- "ja": "- プラグインが古いバージョンで固まって自動更新されない問題を修正しました。新しいバージョンがあるかの確認を、実際のインストールと同じ情報源から行うようになり、「スマホには通知が出るのにパソコンが動かない」という状態が起きなくなりました。\n- アプリが30分ごとにプラグインの更新を確認するようになり、開いたままでも通知が届きます。バックグラウンドにして戻る必要はありません。\n- 更新完了後にページに残る「更新 / 後で」ボタンが自動で消えます。デバイスが多い場合、更新ページですべてをまとめて更新できます。",
130
- "ko": "- 플러그인이 오래된 버전에 멈춰 자동 업데이트되지 않던 문제를 수정했습니다. 새 버전이 있는지 확인할 때 실제 설치와 같은 출처를 사용하므로, \"휴대전화에는 알림이 뜨는데 컴퓨터는 그대로인\" 상황이 더 이상 발생하지 않습니다.\n- 앱이 30분마다 플러그인 업데이트를 확인하므로 계속 열어 두어도 알림을 받을 수 있습니다. 백그라운드로 보냈다가 돌아올 필요가 없습니다.\n- 업데이트가 끝나면 화면에 남아 있던 \"업데이트 / 나중에\" 버튼이 자동으로 사라집니다. 기기가 많으면 업데이트 페이지에서 모두 한 번에 업데이트할 수 있습니다.",
131
- "de": "- Behoben: Das Plugin blieb manchmal auf einer alten Version hängen und aktualisierte sich nicht automatisch. Der Computer prüft jetzt auf dieselbe Weise auf neue Versionen, wie er auch installiert — „das Handy zeigt eine Update-Meldung, der Computer bleibt stehen“ passiert nicht mehr.\n- Die App prüft jetzt alle 30 Minuten auf Plugin-Updates, sodass du auch bei dauerhaft geöffneter App eine Benachrichtigung bekommst — ohne in den Hintergrund und zurück zu wechseln.\n- Nach Abschluss eines Updates verschwinden die übrig gebliebenen Buttons „Aktualisieren / Später“ automatisch; bei vielen Geräten kann die Update-Seite alle auf einmal aktualisieren.",
132
- "es": "- Corregido: el plugin podía quedarse atascado en una versión antigua y no actualizarse solo. Ahora el ordenador comprueba si hay versiones nuevas desde la misma fuente que usa para instalar, así que ya no ocurre que «el móvil muestra un aviso pero el ordenador no se mueve».\n- La app ahora comprueba las actualizaciones del plugin cada 30 minutos, así que recibirás el aviso aunque la dejes abierta, sin necesidad de pasar a segundo plano y volver.\n- Al terminar una actualización, los botones sobrantes de «Actualizar / Más tarde» desaparecen automáticamente; con muchos dispositivos, la página de actualizaciones puede actualizarlos todos a la vez.",
133
- "fr": "- Corrigé : le plugin pouvait rester bloqué sur une ancienne version et ne pas se mettre à jour automatiquement. L'ordinateur vérifie désormais l'existence de nouvelles versions depuis la même source que celle utilisée pour l'installation : le cas « le téléphone affiche une notification mais l'ordinateur ne bouge pas » ne se produit plus.\n- L'application vérifie maintenant les mises à jour du plugin toutes les 30 minutes : vous recevrez la notification même si elle reste ouverte, sans passer en arrière-plan et revenir.\n- Une fois la mise à jour terminée, les boutons restants « Mettre à jour / Plus tard » disparaissent automatiquement ; avec de nombreux appareils, la page de mise à jour peut tous les mettre à jour en une seule fois.",
134
- "pt": "- Corrigido: o plugin podia ficar preso numa versão antiga e não atualizar sozinho. Agora o computador verifica se há versões novas na mesma fonte usada para instalar, então não acontece mais de «o celular mostrar um aviso e o computador ficar parado».\n- O app agora verifica atualizações do plugin a cada 30 minutos, então você recebe o aviso mesmo deixando-o aberto, sem precisar ir para o segundo plano e voltar.\n- Após a conclusão da atualização, os botões restantes de «Atualizar / Depois» desaparecem automaticamente; com muitos dispositivos, a página de atualizações pode atualizar todos de uma vez.",
135
- "ru": "- Исправлено: плагин мог застрять на старой версии и не обновляться автоматически. Теперь компьютер проверяет наличие новых версий из того же источника, из которого выполняет установку, поэтому ситуация «телефон показывает уведомление, а компьютер не реагирует» больше не возникает.\n- Теперь приложение проверяет обновления плагина каждые 30 минут, поэтому уведомление придёт даже если оно всё время открыто — не нужно сворачивать его и возвращаться.\n- После завершения обновления оставшиеся кнопки «Обновить / Позже» исчезают автоматически; при большом количестве устройств страница обновлений может обновить их все сразу.",
136
- "tr": "- Düzeltildi: eklenti eski bir sürüme takılıp kendiliğinden güncellenmeyebiliyordu. Artık bilgisayar yeni sürüm olup olmadığını, kurulumu yaptığı kaynaktan kontrol ediyor; böylece \"telefonda bildirim çıkıyor ama bilgisayar kıpırdamıyor\" durumu artık oluşmuyor.\n- Uygulama artık eklenti güncellemelerini 30 dakikada bir kontrol ediyor; açık bıraksanız da bildirim gelir, arka plana alıp geri dönmeniz gerekmez.\n- Bir güncelleme tamamlandığında geride kalan \"Güncelle / Daha sonra\" düğmeleri otomatik kaybolur; cihaz sayısı fazlaysa güncelleme sayfası tümünü aynı anda güncelleyebilir."
126
+ "zh-Hans": "- 手机在局域网配电脑更稳了:配对码和票据改成从电脑实时获取,修掉扫了正常二维码却提示「码不对 / 电脑拒绝新设备」、一直连不上的问题,失败时也会显示真实原因。\n- 引导页的二维码会跟着配对码即时刷新,不再摆已经失效的旧码;配对和网络连接的说明也更新得更清楚。\n- 面板顶栏的「检查更新」换成下箭头托盘图标,不再像搜索放大镜;「公网线路」分区改叫「服务商线路」。",
127
+ "zh-Hant": "- 手機在區域網路配電腦更穩了:配對碼和票據改成從電腦即時取得,修掉掃了正常 QR 碼卻提示「碼不對 / 電腦拒絕新裝置」、一直連不上的問題,失敗時也會顯示真正原因。\n- 引導頁的 QR 碼會跟著配對碼即時更新,不再擺已經失效的舊碼;配對和網路連線的說明也更新得更清楚。\n- 面板頂欄的「檢查更新」換成下箭頭托盤圖示,不再像搜尋放大鏡;「公網線路」分區改叫「服務商線路」。",
128
+ "en": "- Pairing with your computer over the local network is more reliable: the pairing code and ticket are now read live from the computer, fixing cases where a perfectly valid QR code was rejected as \"wrong code / computer refused the new device\" and pairing never went through, with the real cause now shown when something fails.\n- The onboarding QR code now refreshes as soon as the pairing code changes, so it never shows an expired code; the pairing and network-connection guidance is clearer too.\n- The \"Check for updates\" button in the panel header now uses a download-to-tray icon instead of a search-like magnifier, and the \"Public lines\" section is renamed \"Provider lines\".",
129
+ "ja": "- ローカルネットワークでのパソコンとのペアリングがより確実になりました。ペアリングコードとチケットをパソコンからリアルタイムに取得するようになり、正常な QR コードを読み取っても「コードが違う/パソコンが新しい端末を拒否した」と表示されて接続できない問題を修正しました。失敗時には本当の原因も表示します。\n- セットアップ画面の QR コードは、ペアリングコードが変わるとすぐに更新され、期限切れの古いコードを表示しなくなりました。ペアリングとネットワーク接続の説明もより分かりやすくなっています。\n- パネル上部の「アップデートを確認」は虫めがねからトレイに落ちる下矢印のアイコンに変わり、検索に見えなくなりました。「公衆回線」の区分は「プロバイダー回線」に名称を変更しました。",
130
+ "ko": "- 로컬 네트워크에서 컴퓨터와 페어링이 더 안정적으로 동작합니다. 페어링 코드와 티켓을 컴퓨터에서 실시간으로 가져오도록 바꿔, 정상적인 QR 코드를 스캔해도 \"코드가 잘못됨 / 컴퓨터가 새 기기를 거부함\"으로 표시되며 연결되지 않던 문제를 고쳤습니다. 실패할 때는 실제 원인도 보여 줍니다.\n- 설정 안내 화면의 QR 코드는 페어링 코드가 바뀌면 곧바로 갱신되어 만료된 예전 코드를 더 이상 보여 주지 않습니다. 페어링과 네트워크 연결 안내도 더 명확해졌습니다.\n- 패널 상단의 \"업데이트 확인\"은 돋보기 대신 트레이로 내려가는 아래쪽 화살표 아이콘으로 바뀌었고, \"공인 회선\" 구역은 \"사업자 회선\"으로 이름이 바뀌었습니다.",
131
+ "de": "- Die Kopplung mit dem Computer im lokalen Netzwerk ist zuverlässiger: Pairing-Code und Ticket werden jetzt live vom Computer gelesen. Damit ist das Problem behoben, dass ein völlig gültiger QR-Code als „falscher Code / Computer hat das neue Gerät abgelehnt“ zurückgewiesen wurde und die Verbindung nie zustande kam; bei Fehlern wird nun die tatsächliche Ursache angezeigt.\n- Der QR-Code auf der Einrichtungsseite aktualisiert sich jetzt sofort, wenn sich der Pairing-Code ändert, und zeigt keinen abgelaufenen Code mehr. Auch die Hinweise zu Kopplung und Netzwerkverbindung sind klarer.\n- Die Schaltfläche „Nach Updates suchen“ in der Kopfzeile des Panels nutzt jetzt ein Symbol mit einem Pfeil in den Ablagekorb statt einer Lupe, die wie eine Suche wirkte; der Abschnitt „Öffentliche Leitungen“ heißt jetzt „Anbieter-Leitungen“.",
132
+ "es": "- La vinculación con el ordenador en la red local es más fiable: el código y el ticket de vinculación ahora se leen en tiempo real desde el ordenador, lo que corrige los casos en que un código QR perfectamente válido se rechazaba como «código incorrecto / el ordenador rechazó el nuevo dispositivo» y nunca se conectaba; además, ahora se muestra la causa real cuando algo falla.\n- El código QR de la guía se actualiza en cuanto cambia el código de vinculación, así que ya no muestra uno caducado; también se han aclarado las indicaciones sobre vinculación y conexión de red.\n- El botón «Buscar actualizaciones» de la cabecera del panel ahora usa un icono de flecha hacia la bandeja en lugar de una lupa que parecía una búsqueda, y la sección «Líneas públicas» pasa a llamarse «Líneas de proveedores».",
133
+ "fr": "- L'appairage avec l'ordinateur sur le réseau local est plus fiable : le code et le ticket d'appairage sont désormais lus en temps réel depuis l'ordinateur, ce qui corrige les cas où un QR code parfaitement valide était refusé avec « code incorrect / l'ordinateur a refusé le nouvel appareil » et où la connexion n'aboutissait jamais ; la cause réelle est maintenant affichée en cas d'échec.\n- Le QR code de la page d'installation se met à jour dès que le code d'appairage change, et n'affiche donc plus un code périmé ; les indications sur l'appairage et la connexion réseau sont également plus claires.\n- Le bouton « Vérifier les mises à jour » de l'en-tête du panneau utilise désormais une icône de flèche vers la corbeille au lieu d'une loupe qui ressemblait à une recherche, et la section « Lignes publiques » devient « Lignes de fournisseurs ».",
134
+ "pt": "- O emparelhamento com o computador na rede local está mais confiável: o código e o ticket de emparelhamento agora são lidos em tempo real do computador, o que corrige os casos em que um QR code perfeitamente válido era recusado como «código errado / o computador recusou o novo dispositivo» e a conexão nunca acontecia; agora a causa real também é exibida quando algo falha.\n- O QR code da tela de configuração é atualizado assim que o código de emparelhamento muda, então não mostra mais um código expirado; as orientações sobre emparelhamento e conexão de rede também ficaram mais claras.\n- O botão «Verificar atualizações» no cabeçalho do painel agora usa um ícone de seta para a bandeja em vez de uma lupa que parecia uma busca, e a seção «Linhas públicas» passou a se chamar «Linhas de provedores».",
135
+ "ru": "- Сопряжение с компьютером по локальной сети стало надёжнее: код и тикет сопряжения теперь читаются с компьютера в режиме реального времени. Это исправляет случаи, когда совершенно правильный QR-код отклонялся с сообщением «неверный код / компьютер отклонил новое устройство» и подключение так и не происходило; теперь при сбое показывается настоящая причина.\n- QR-код на экране настройки теперь обновляется сразу при изменении кода сопряжения и больше не показывает устаревший код; подсказки о сопряжении и сетевом подключении стали понятнее.\n- Кнопка «Проверить обновления» в верхней панели теперь использует значок стрелки, опускающейся в лоток, вместо лупы, похожей на поиск, а раздел «Публичные линии» переименован в «Линии провайдеров».",
136
+ "tr": "- Yerel ağ üzerinden bilgisayarla eşleştirme artık daha güvenilir: eşleştirme kodu ve bileti doğrudan bilgisayardan canlı olarak alınıyor. Bu sayede tamamen geçerli bir QR kodun \"kod yanlış / bilgisayar yeni cihazı reddetti\" diye reddedilmesi ve bağlantının hiç kurulamaması sorunu giderildi; bir hata olduğunda gerçek nedeni de gösteriliyor.\n- Kurulum ekranındaki QR kod, eşleştirme kodu değişir değişmez yenileniyor ve artık süresi geçmiş eski kodu göstermiyor; eşleştirme ve ağ bağlantısı yönergeleri de daha anlaşılır hale getirildi.\n- Panelin üst çubuğundaki \"Güncellemeleri denetle\" düğmesi, arama gibi görünen büyüteç yerine tepsiye inen bir aşağı ok simgesi kullanıyor; \"Genel hatlar\" bölümünün adı \"Sağlayıcı hatları\" olarak değiştirildi."
137
137
  }
138
138
  }
139
139
  }