See: https://github.com/ooni/probe/issues/1856. This diff will need to be backported to release/3.11.