Let the person choose and keep the LAN address friends connect to

Sharing on the local network used to take whatever address the Manager found
first, which is often a virtual adapter. The Friends page now lists the usable
IPv4 addresses of the computer (the automatic one marked) and accepts a custom
one. The choice is kept independently of the sharing mode, so it survives
restarts and switching to other modes. A chosen address that is not available
is reported instead of silently switching to another adapter.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ДмитрийandClaude Sonnet 5.5 committed 2026-10-07 06:44:34 +05:00
1 parent 3f700ee8f4
commit 8490dc9983
14 files changed
+292 -17

No files matched your search

+8
View File
@@ -816,6 +816,14 @@ const de: Partial<Record<keyof typeof en, string>> = {
"upd.current": "Du bist auf dem neuesten Stand (Version {v}).",
"client.job.checking": "Client wird geprüft…",
"client.job.updating": "Client wird aktualisiert",
"fr.lan.address": "Netzwerkadresse",
"fr.lan.automatic": "Automatisch",
"fr.lan.default": "Standard",
"fr.lan.custom": "Eigene Adresse…",
"fr.lan.customIpv4": "Eigene IPv4-Adresse",
"fr.lan.unavailable": "Ausgewählte Adresse nicht verfügbar",
"fr.lan.unavailableText": "Die ausgewählte Adresse ist derzeit keinem erkannten lokalen Netzwerkadapter zugewiesen. Wählen Sie eine andere Adresse oder Automatisch, oder behalten Sie diese Adresse bewusst bei.",
"fr.lan.invalid": "Ungültige IPv4-Adresse",
};
export default de;
+8
View File
@@ -837,6 +837,14 @@ const en = {
"upd.current": "You are up to date (version {v}).",
"client.job.checking": "Checking the client…",
"client.job.updating": "Updating the client",
"fr.lan.address": "Network address",
"fr.lan.automatic": "Automatic",
"fr.lan.default": "Default",
"fr.lan.custom": "Custom address…",
"fr.lan.customIpv4": "Custom IPv4 address",
"fr.lan.unavailable": "Selected address unavailable",
"fr.lan.unavailableText": "The selected address is not currently assigned to a detected local interface. Choose another address or switch to Automatic, or keep this address intentionally.",
"fr.lan.invalid": "Invalid IPv4 address",
} as const;
export default en;
+8
View File
@@ -816,6 +816,14 @@ const es: Partial<Record<keyof typeof en, string>> = {
"upd.current": "Estás al día (versión {v}).",
"client.job.checking": "Comprobando el cliente…",
"client.job.updating": "Actualizando el cliente",
"fr.lan.address": "Dirección de red",
"fr.lan.automatic": "Automática",
"fr.lan.default": "Predeterminada",
"fr.lan.custom": "Dirección personalizada…",
"fr.lan.customIpv4": "Dirección IPv4 personalizada",
"fr.lan.unavailable": "Dirección seleccionada no disponible",
"fr.lan.unavailableText": "La dirección seleccionada no está asignada actualmente a ninguna interfaz local detectada. Elige otra dirección o Automática, o conserva esta dirección si así lo deseas.",
"fr.lan.invalid": "Dirección IPv4 no válida",
};
export default es;
+8
View File
@@ -816,6 +816,14 @@ const fr: Partial<Record<keyof typeof en, string>> = {
"upd.current": "Vous êtes à jour (version {v}).",
"client.job.checking": "Vérification du client…",
"client.job.updating": "Mise à jour du client",
"fr.lan.address": "Adresse réseau",
"fr.lan.automatic": "Automatique",
"fr.lan.default": "Par défaut",
"fr.lan.custom": "Adresse personnalisée…",
"fr.lan.customIpv4": "Adresse IPv4 personnalisée",
"fr.lan.unavailable": "Adresse sélectionnée indisponible",
"fr.lan.unavailableText": "Cette adresse n’est actuellement attribuée à aucune interface locale détectée. Choisissez une autre adresse ou le mode Automatique, ou conservez volontairement cette adresse.",
"fr.lan.invalid": "Adresse IPv4 non valide",
};
export default fr;
+8
View File
@@ -835,6 +835,14 @@ const ru: Partial<Record<keyof typeof en, string>> = {
"upd.current": "У вас последняя версия ({v}).",
"client.job.checking": "Проверка клиента…",
"client.job.updating": "Обновление клиента",
"fr.lan.address": "Сетевой адрес",
"fr.lan.automatic": "Автоматически",
"fr.lan.default": "По умолчанию",
"fr.lan.custom": "Другой адрес…",
"fr.lan.customIpv4": "Свой IPv4-адрес",
"fr.lan.unavailable": "Выбранный адрес недоступен",
"fr.lan.unavailableText": "Выбранный адрес сейчас не назначен обнаруженному сетевому интерфейсу. Выберите другой адрес, переключитесь на автоматический выбор или намеренно сохраните этот адрес.",
"fr.lan.invalid": "Некорректный IPv4-адрес",
};
export default ru;
+8
View File
@@ -818,6 +818,14 @@ const zh = {
"client.job.updating": "正在更新游戏客户端",
"err.docker_unavailable.title": "Docker 不可用",
"err.docker_unavailable.message": "此服务器通过 Docker 运行。请安装并启动 Docker,确保当前用户有权使用它,然后重试。",
"fr.lan.address": "网络地址",
"fr.lan.automatic": "自动",
"fr.lan.default": "默认",
"fr.lan.custom": "自定义地址…",
"fr.lan.customIpv4": "自定义 IPv4 地址",
"fr.lan.unavailable": "所选地址不可用",
"fr.lan.unavailableText": "所选地址目前未分配给检测到的本地网络接口。请选择其他地址、切换到自动,或有意保留此地址。",
"fr.lan.invalid": "无效的 IPv4 地址",
} as const;
export default zh;