cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] *.domain.tld not recognized in NO_PROXY env

Open alex-vg opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This issue exists in the latest npm version

  • [X] I am using the latest npm

Current Behavior

Currently, only .domain.tld is interpreted in NO_PROXY, wildcard *.domain.tld seem to be handled as actual char.

Expected Behavior

*.domain.tld should match all subdomains. This should be standardized according to: https://about.gitlab.com/blog/2021/01/27/we-need-to-talk-no-proxy/#standardizing-no_proxy

Steps To Reproduce

  1. Have HTTPS_PROXY and HTTP_PROXY set to a proxy (yourproxy.tld) and NO_PROXY="*.domain.tld" to reach a registry.
  2. Run npx http-server
  3. See error...

Environment

  • npm: v8.15.0 (LTS, but same for latest)
  • Node.js: v16.17.0 (LTS, but same for latest)
  • OS Name: Windows 10
  • npm config:
registry=https://server.domain.tld/nexus/repository/npm/

alex-vg avatar Sep 27 '22 11:09 alex-vg