meow
This commit is contained in:
parent
cafe1ec350
commit
c8dde76265
1 changed files with 2 additions and 0 deletions
|
@ -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<()> {
|
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)? {
|
if app.is_banned_host(&host)? {
|
||||||
bail!("refusing to start indexer for banned host '{}'", &host);
|
bail!("refusing to start indexer for banned host '{}'", &host);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue