···2222 forest.index
2323 |> URI.Tbl.to_seq
2424 |> Seq.map fst
2525- |> List.of_seq
2625 in
2626+ let config = forest.config in
2727 let keys =
2828- let@ uri = List.filter_map @~ addrs in
2929- let@ prefix', key = Option.bind @@ URI_scheme.split_addr uri in
3030- if prefix = prefix' then Some key else None
2828+ List.of_seq @@
2929+ let@ uri = Seq.filter_map @~ addrs in
3030+ if URI.host config.url = URI.host uri then
3131+ let@ prefix', key = Option.bind @@ URI_scheme.split_addr uri in
3232+ if prefix = prefix' then Some key else None
3333+ else None
3134 in
3235 let next =
3336 match mode with