The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): the Web Access pane says network access is not encrypted
emozilla881a3eae8b2c
diff --git a/apps/desktop/src/app/settings/web-access-settings.test.tsx b/apps/desktop/src/app/settings/web-access-settings.test.tsxindex 5369300e80e..61900e7e882 100644--- a/apps/desktop/src/app/settings/web-access-settings.test.tsx+++ b/apps/desktop/src/app/settings/web-access-settings.test.tsx@@ -168,4 +168,11 @@ describe('WebAccessSettings', () => {expect(await screen.findByText('Restart needed')).toBeTruthy()})++ it('says that network access is not encrypted', async () => {+ // LAN mode is plain HTTP: anyone on the network can read the traffic.+ renderPane(OFF)++ expect(await screen.findByText(/The connection is not encrypted/)).toBeTruthy()+ })})diff --git a/apps/desktop/src/app/settings/web-access-settings.tsx b/apps/desktop/src/app/settings/web-access-settings.tsxindex 1ea313a08d8..74874c38248 100644--- a/apps/desktop/src/app/settings/web-access-settings.tsx+++ b/apps/desktop/src/app/settings/web-access-settings.tsx@@ -238,7 +238,21 @@ function WhereRow({ lanUrl, locked, mode, onMode, onPublicUrl, port, publicUrl,/>)}- description={mode === 'lan' ? (lanUrl ? w.modeLanDetail(lanUrl) : w.noLan) : w.modePublicDetail(port)}+ description={+ mode === 'lan' ? (+ lanUrl ? (+ <>+ {w.modeLanDetail(lanUrl)}+ {/* Plain HTTP: anyone on the network can read the traffic, sign-in included. */}+ <span className="block">{w.lanUnencrypted}</span>+ </>+ ) : (+ w.noLan+ )+ ) : (+ w.modePublicDetail(port)+ )+ }title={mode === 'lan' ? w.modeLan : w.modePublic}/>)diff --git a/apps/desktop/src/i18n/ar_settings.ts b/apps/desktop/src/i18n/ar_settings.tsindex 9cb87a1eaac..2df0a5002d2 100644--- a/apps/desktop/src/i18n/ar_settings.ts+++ b/apps/desktop/src/i18n/ar_settings.ts@@ -733,6 +733,7 @@ export const arSettings = {restartGateway: 'إعادة تشغيل البوابة',modeLan: 'هذه الشبكة',modeLanDetail: url => `تفتح الأجهزة على شبكة Wi-Fi العنوان ${url}. استخدمه على شبكة تثق بها فقط.`,+ lanUnencrypted: 'الاتصال غير مشفّر: يمكن لآخرين على هذه الشبكة قراءة ما ترسله وتستقبله.',noLan: 'لا يملك هذا الحاسوب عنوان شبكة يمكن للأجهزة الأخرى الوصول إليه.',modePublic: 'عنواني الخاص',modePublicDetail: port => `عنوان HTTPS تديره بالفعل، مثل Tailscale Serve أو نفق، يحوّل إلى http://127.0.0.1:${port}.`diff --git a/apps/desktop/src/i18n/de_gateway_host.ts b/apps/desktop/src/i18n/de_gateway_host.tsindex 1a4a70d4fdf..89888f98f55 100644--- a/apps/desktop/src/i18n/de_gateway_host.ts+++ b/apps/desktop/src/i18n/de_gateway_host.ts@@ -32,6 +32,7 @@ export const deGatewayHost: GatewayHostTranslations = {restartGateway: 'Gateway neu starten',modeLan: 'Dieses Netzwerk',modeLanDetail: url => `Geräte in deinem WLAN öffnen ${url}. Nur in einem vertrauenswürdigen Netzwerk verwenden.`,+ lanUnencrypted: 'Die Verbindung ist nicht verschlüsselt: Andere in diesem Netzwerk könnten mitlesen, was du sendest und empfängst.',noLan: 'Dieser Computer hat keine Netzwerkadresse, die andere Geräte erreichen können.',modePublic: 'Eigene URL',modePublicDetail: port => `Eine HTTPS-Adresse, die du bereits betreibst, etwa Tailscale Serve oder ein Tunnel, die an http://127.0.0.1:${port} weiterleitet.`diff --git a/apps/desktop/src/i18n/en_gateway_host.ts b/apps/desktop/src/i18n/en_gateway_host.tsindex c2d43e0e8c5..5bdd3c0215d 100644--- a/apps/desktop/src/i18n/en_gateway_host.ts+++ b/apps/desktop/src/i18n/en_gateway_host.ts@@ -32,6 +32,7 @@ export const enGatewayHost: GatewayHostTranslations = {restartGateway: 'Restart gateway',modeLan: 'This network',modeLanDetail: url => `Devices on your Wi-Fi open ${url}. Use it only on a network you trust.`,+ lanUnencrypted: 'The connection is not encrypted: others on this network could read what you send and receive.',noLan: 'This computer has no network address other devices can reach.',modePublic: 'My own URL',modePublicDetail: port => `An HTTPS address you already run, such as Tailscale Serve or a tunnel, forwarding to http://127.0.0.1:${port}.`diff --git a/apps/desktop/src/i18n/es_gateway_host.ts b/apps/desktop/src/i18n/es_gateway_host.tsindex 17186b36b1f..b4b1ac13e32 100644--- a/apps/desktop/src/i18n/es_gateway_host.ts+++ b/apps/desktop/src/i18n/es_gateway_host.ts@@ -33,6 +33,7 @@ export const esGatewayHost: GatewayHostTranslations = {restartGateway: 'Reiniciar gateway',modeLan: 'Esta red',modeLanDetail: url => `Los dispositivos de tu wifi abren ${url}. Úsalo solo en una red de confianza.`,+ lanUnencrypted: 'La conexión no está cifrada: otros en esta red podrían leer lo que envías y recibes.',noLan: 'Este ordenador no tiene una dirección de red a la que puedan llegar otros dispositivos.',modePublic: 'Mi propia URL',modePublicDetail: port => `Una dirección HTTPS que ya tengas, como Tailscale Serve o un túnel, que reenvíe a http://127.0.0.1:${port}.`diff --git a/apps/desktop/src/i18n/fr_gateway_host.ts b/apps/desktop/src/i18n/fr_gateway_host.tsindex 8348873137a..7279be7b988 100644--- a/apps/desktop/src/i18n/fr_gateway_host.ts+++ b/apps/desktop/src/i18n/fr_gateway_host.ts@@ -32,6 +32,7 @@ export const frGatewayHost: GatewayHostTranslations = {restartGateway: 'Redémarrer la passerelle',modeLan: 'Ce réseau',modeLanDetail: url => `Les appareils de votre Wi-Fi ouvrent ${url}. À utiliser uniquement sur un réseau de confiance.`,+ lanUnencrypted: "La connexion n'est pas chiffrée : d'autres personnes sur ce réseau pourraient lire ce que vous envoyez et recevez.",noLan: "Cet ordinateur n'a aucune adresse réseau accessible aux autres appareils.",modePublic: 'Ma propre URL',modePublicDetail: port => `Une adresse HTTPS que vous gérez déjà, comme Tailscale Serve ou un tunnel, redirigée vers http://127.0.0.1:${port}.`diff --git a/apps/desktop/src/i18n/ja_gateway_host.ts b/apps/desktop/src/i18n/ja_gateway_host.tsindex 9d580058ffb..b467bb51469 100644--- a/apps/desktop/src/i18n/ja_gateway_host.ts+++ b/apps/desktop/src/i18n/ja_gateway_host.ts@@ -32,6 +32,7 @@ export const jaGatewayHost: GatewayHostTranslations = {restartGateway: 'ゲートウェイを再起動',modeLan: 'このネットワーク',modeLanDetail: url => `Wi-Fi 上のデバイスで ${url} を開きます。信頼できるネットワークでのみ使用してください。`,+ lanUnencrypted: '接続は暗号化されていません。同じネットワーク上の他の人が送受信の内容を読み取れる可能性があります。',noLan: 'このコンピューターには、他のデバイスから到達できるネットワークアドレスがありません。',modePublic: '独自の URL',modePublicDetail: port => `Tailscale Serve やトンネルなど、すでに運用している HTTPS アドレスで、http://127.0.0.1:${port} に転送するもの。`diff --git a/apps/desktop/src/i18n/ru_gateway_host.ts b/apps/desktop/src/i18n/ru_gateway_host.tsindex 30f9e71f1a7..d111418dc3f 100644--- a/apps/desktop/src/i18n/ru_gateway_host.ts+++ b/apps/desktop/src/i18n/ru_gateway_host.ts@@ -32,6 +32,7 @@ export const ruGatewayHost: GatewayHostTranslations = {restartGateway: 'Перезапустить шлюз',modeLan: 'Эта сеть',modeLanDetail: url => `Устройства в вашей сети Wi-Fi открывают ${url}. Используйте только в доверенной сети.`,+ lanUnencrypted: 'Соединение не зашифровано: другие в этой сети могут прочитать то, что вы отправляете и получаете.',noLan: 'У этого компьютера нет сетевого адреса, доступного другим устройствам.',modePublic: 'Мой собственный URL',modePublicDetail: port => `Уже работающий HTTPS-адрес, например Tailscale Serve или туннель, который перенаправляет на http://127.0.0.1:${port}.`diff --git a/apps/desktop/src/i18n/types_gateway_host.ts b/apps/desktop/src/i18n/types_gateway_host.tsindex 85b0b38e88e..cf7e0236c6a 100644--- a/apps/desktop/src/i18n/types_gateway_host.ts+++ b/apps/desktop/src/i18n/types_gateway_host.ts@@ -35,6 +35,7 @@ export interface WebAccessTranslations {restartGateway: stringmodeLan: stringmodeLanDetail: (url: string) => string+ lanUnencrypted: stringnoLan: stringmodePublic: stringmodePublicDetail: (port: number) => stringdiff --git a/apps/desktop/src/i18n/zh-hant_settings.ts b/apps/desktop/src/i18n/zh-hant_settings.tsindex 14117bcc42d..d68df41d514 100644--- a/apps/desktop/src/i18n/zh-hant_settings.ts+++ b/apps/desktop/src/i18n/zh-hant_settings.ts@@ -1000,6 +1000,7 @@ export const zhHantSettings = {restartGateway: '重新啟動閘道',modeLan: '目前網路',modeLanDetail: url => `你的 Wi-Fi 中的裝置可開啟 ${url}。僅在你信任的網路中使用。`,+ lanUnencrypted: '連線未加密:同一網路中的其他人可能讀取你傳送和接收的內容。',noLan: '這台電腦沒有其他裝置可以連到的網路位址。',modePublic: '我自己的網址',modePublicDetail: port => `你已有的 HTTPS 網址(例如 Tailscale Serve 或通道),並轉送到 http://127.0.0.1:${port}。`diff --git a/apps/desktop/src/i18n/zh_gateway_host.ts b/apps/desktop/src/i18n/zh_gateway_host.tsindex e92169229b6..7d7ba523fed 100644--- a/apps/desktop/src/i18n/zh_gateway_host.ts+++ b/apps/desktop/src/i18n/zh_gateway_host.ts@@ -32,6 +32,7 @@ export const zhGatewayHost: GatewayHostTranslations = {restartGateway: '重启网关',modeLan: '当前网络',modeLanDetail: url => `你的 Wi-Fi 中的设备可打开 ${url}。仅在你信任的网络中使用。`,+ lanUnencrypted: '连接未加密:同一网络中的其他人可能读取你发送和接收的内容。',noLan: '这台电脑没有其他设备可以访问的网络地址。',modePublic: '我自己的网址',modePublicDetail: port => `你已有的 HTTPS 地址(例如 Tailscale Serve 或隧道),并转发到 http://127.0.0.1:${port}。`diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.jsonindex 26d31404e8a..1c0d5c0bb27 100644--- a/locales/_keys.desktop.json+++ b/locales/_keys.desktop.json@@ -3530,6 +3530,7 @@"settings.gateway.unavailableTitle","settings.gateway.webAccess.failed","settings.gateway.webAccess.intro",+ "settings.gateway.webAccess.lanUnencrypted","settings.gateway.webAccess.modeLan","settings.gateway.webAccess.modeLanDetail","settings.gateway.webAccess.modePublic",