HF RL Explorer

You are working on the mitmproxy/mitmproxy repository. The source code is checked out at /testbed at commit…

You are working on the mitmproxy/mitmproxy repository. The source code is checked out at /testbed at commit…: a task in SWE-Lego-RL-2699 (Harbor dataset). This has come up a few times now: mitmproxy currently just opens asyncio sockets with the unresolved hostnames. Python's stdlib will then use…

The task

This has come up a few times now: mitmproxy currently just opens asyncio sockets with the unresolved hostnames. Python's stdlib will then use libc's getaddrinfo, which always includes /etc/hosts. This can be very annoying, see e.g. https://github.com/mitmproxy/mitmproxy/issues/6737. We want a way to teach mitmproxy…

Part of Lego-X/Lego-RL-2699.