GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — fix(env-http-proxy-agent): NO_PROXY wildcard semantics by mcollina · Pull Request #5777 · nodejs/undici Conversation
Member
Fix NO_PROXY wildcard matching in Three non-sensible behaviors are fixed:
A bare Tests updated and added; all Refs: nodejs/node#57872
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMake `*.domain` NO_PROXY entries match subdomains only, not the apex host (align with node:http and the usual wildcard convention), and recognize a bare '*' entry as a global wildcard regardless of its position or surrounding whitespace (e.g. ' * ' or 'none.invalid,*'). Previously these bypassed the proxy incorrectly or not at all. Refs: nodejs/node#57872
|
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #5777 +/- ## ========================================== + Coverage 93.50% 93.51% +0.01% ========================================== Files 110 110 Lines 39072 39374 +302 ========================================== + Hits 36534 36821 +287 - Misses 2538 2553 +15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (entry.hostname === '*') { | ||
| if (entry.port && entry.port !== port) { | ||
| continue | ||
| } | ||
| return false // Never proxy if a wildcard entry is present. | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I noticed this also introduces *:PORT behavior, while node:http currently only treats an exact * entry as a global wildcard.
Is that difference intentional given the goal of keeping the two implementations consistent?
If *:PORT is intended here, it might also be worth adding coverage for the non-matching-port case.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.