FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-123599: Match `file:` URL hostname against machine hostname in urllib by barneygale · Pull Request #132523 · python/cpython · GitHub

/ cpython Public

GH-123599: Match file: URL hostname against machine hostname in urllib - #132523

Merged
barneygale merged 3 commits into
python:mainfrom
barneygale:gh-123599-bsd
Apr 15, 2025
Merged

GH-123599: Match file: URL hostname against machine hostname in urllib#132523
barneygale merged 3 commits into
python:mainfrom
barneygale:gh-123599-bsd

Conversation

barneygale commented Apr 14, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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.

…in urllib

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.
barneygale marked this pull request as ready for review April 14, 2025 17:56
barneygale added skip news 🔨 test-with-buildbots Test PR w/ buildbots; report in status section and removed awaiting core review labels Apr 14, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @barneygale for commit d3f2555 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F132523%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 14, 2025

serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. This fixes problem on the FreeBSD VM.

There is other failure on OpenBSD VM, but it is a different issue.

Copy link
Copy Markdown
Contributor Author

Thanks Serhiy

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL