forge
Explore
Log in

Don't you dare go Hollow

the app files itself under the stored public address or base_url alone: the bound address was the last fallback, and a loopback bind is nothing anyone else can reach — filed, it would have overwritten the real address in every switcher; neither set now skips the registration with the one boot-time line it already had

Browse files at this commit

f36493faa8f539affb5f0c69f7c6bf7f5b27f586Ahmet Kaan GümüşParent: 87d91bc
Claude-Session: https://claude.ai/code/session_01JDMA1TAen2UjGRvUVu96KE
crates/iz-web/src/main.rsmodified+5 -1
@@ -146,10 +146,14 @@ async fn main() {
146 // mailable before their first visit, and the provider's renames and146 // mailable before their first visit, and the provider's renames and
147 // admin flips follow on their own. Runs beside the sweep, first pass147 // admin flips follow on their own. Runs beside the sweep, first pass
148 // right away so a fresh deploy sees everyone at boot.148 // right away so a fresh deploy sees everyone at boot.
149+ // The address the app files itself under is `base_url` alone: a bound
150+ // address is no fallback here — a loopback bind is nothing anyone else
151+ // can reach, and filing it would overwrite the real one in every
152+ // switcher.
149 tokio::spawn(directory_sync(153 tokio::spawn(directory_sync(
150 store.clone(),154 store.clone(),
151 iz_client::IzClient::new(oidc.clone()),155 iz_client::IzClient::new(oidc.clone()),
152- config.public_url(),156+ config.base_url.clone(),
153 ));157 ));
154 // Told when the process is stopping, so the live streams end instead of158 // Told when the process is stopping, so the live streams end instead of
155 // being waited out. See `iz_web::live::Shutdown`.159 // being waited out. See `iz_web::live::Shutdown`.