This commit is contained in:
Charlotte Som 2025-01-15 06:24:09 +00:00
parent cafe1ec350
commit c8dde76265

View file

@ -457,6 +457,8 @@ async fn host_subscription(app: Arc<AppState>, host: String) -> Result<()> {
}
pub async fn index_server(app: Arc<AppState>, host: String) -> Result<()> {
// TODO: normalize host so they can't get through banlist
if app.is_banned_host(&host)? {
bail!("refusing to start indexer for banned host '{}'", &host);
}