From df8c50af9997ffa2cba8120c16f2a294e9007cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 8 Sep 2026 04:54:41 +0300 Subject: [PATCH] =?UTF-8?q?the=20app=20files=20itself=20under=20base=5Furl?= =?UTF-8?q?=20alone:=20the=20bound=20address=20was=20the=20fallback,=20and?= =?UTF-8?q?=20a=20loopback=20bind=20is=20nothing=20anyone=20else=20can=20r?= =?UTF-8?q?each=20=E2=80=94=20filed,=20it=20would=20have=20overwritten=20t?= =?UTF-8?q?he=20real=20address=20in=20every=20switcher;=20an=20empty=20bas?= =?UTF-8?q?e=5Furl=20now=20skips=20the=20registration=20with=20the=20one?= =?UTF-8?q?=20boot-time=20line=20it=20already=20had?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude-Session: https://claude.ai/code/session_01JDMA1TAen2UjGRvUVu96KE --- crates/in-web/src/main.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/crates/in-web/src/main.rs b/crates/in-web/src/main.rs index 280bef9..102a71f 100644 --- a/crates/in-web/src/main.rs +++ b/crates/in-web/src/main.rs @@ -219,10 +219,16 @@ async fn main() { // a fresh deploy shows the trio at boot; an im that does not answer — // down, restarting, mid-deploy — costs one log line and nothing else: // the last list filed keeps the switcher alive until the next beat. - // The address the app registers itself under: the same origin the - // logout walk and the share links carry, without the trailing slash im - // keeps its entries free of. - let public_origin = config.public_origin().trim_end_matches('/').to_string(); + // The address the app registers itself under: `base_url` alone, without + // the trailing slash im keeps its entries free of. The bound address is + // no fallback here — a loopback bind is not an address anyone else can + // reach, and filing it would overwrite the real one in every switcher. + let public_origin = config + .base_url + .as_deref() + .unwrap_or("") + .trim_end_matches('/') + .to_string(); tokio::spawn(family_sync( store.clone(), in_client::InClient::new(oidc.clone()),