GH-123599: Match `file:` URL hostname against machine hostname in urllib (#132523)
In `_is_local_authority()`, return early if the authority matches the machine hostname from `socket.gethostname()`, rather than resolving the names and matching IP addresses.
B
Barney Gale committed
0879ebc953fa7372a4d99f3f79889093f04cac67
Parent: 102f825
Committed by GitHub <noreply@github.com>
on 4/15/2025, 12:05:06 AM