mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-21 10:26:25 +00:00
Close the DNS-rebinding gap on safe_get by resolving once, connecting to that sockaddr, refusing proxies so the peer is the destination, and checking getpeername. Keep that as an implementation detail of safe_get/safe_get_bounded: one session per fetch, a create_connection hook on the urllib3 connection class, no separate adapter module or pool-manager subclass ladder. RAG loader tests now patch safe_get (the public seam) instead of requests.get. Co-authored-by: Rip&Tear <theCyberTech@users.noreply.github.com>