This is the miniooni related part of https://github.com/ooni/probe/issues/1879. This diff will require backport to the release/3.11 branch.