From 2cc90a22e0d17304746a00a7a082fc8b14d01100 Mon Sep 17 00:00:00 2001 From: neckfire Date: Tue, 14 Jul 2026 15:57:51 +0200 Subject: [PATCH] feat(tool): use public domains as presets (works LAN + internet) Switcher presets now use the public domains (tc.nfteam.ovh:8443 / rd-tc.nfteam.ovh:8444) so the same target works for everyone; the unified TLS cert covers both hostnames. LAN users add a hosts entry to avoid hairpin NAT. Co-Authored-By: Claude Opus 4.8 --- src/Prospect.Client.Config/Program.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Prospect.Client.Config/Program.cs b/src/Prospect.Client.Config/Program.cs index a04653f..3df71cd 100644 --- a/src/Prospect.Client.Config/Program.cs +++ b/src/Prospect.Client.Config/Program.cs @@ -13,14 +13,13 @@ internal static class Program { private const string AppId = "868270"; - // Presets. LAN entries match a direct homelab connection (192.168.1.136); the internet - // entry (public domain) is for friends connecting from outside — the TLS cert covers the - // hostname and :8443 bypasses the reverse proxy. + // Presets use the public domains so the same target works for everyone (LAN or internet): + // DNS resolves to the public IP for friends, and the unified TLS cert covers both hostnames. + // On the same LAN, add a hosts entry (domain -> 192.168.1.136) to avoid hairpin NAT. private static readonly (string Key, string Label, string Url)[] Presets = { - ("prod-lan", "PROD (LAN)", "https://192.168.1.136:8443"), - ("preprod-lan", "PREPROD (LAN)", "https://192.168.1.136:8444"), - ("prod", "PROD (amis / internet)", "https://tc.nfteam.ovh:8443"), + ("prod", "PROD", "https://tc.nfteam.ovh:8443"), + ("preprod", "PREPROD", "https://rd-tc.nfteam.ovh:8444"), }; private static string SettingsPath => Path.Combine(