GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CIDR support for proxy bypass list · Issue #149746 · python/cpython

CIDR support for proxy bypass list #149746

New issue
Copy link
New issue
Copy link
Open
Open
CIDR support for proxy bypass list#149746
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement

Description

@HeroCC
HeroCC
opened on May 12, 2026
Issue body actions

Feature or enhancement

Proposal:

I propose adding universal support for CIDR-notation IP addresses when reading NO_PROXY / the OS-specific equivalents.

Currently, support for NO_PROXY is a bit inconsistent, both across the ecosystem and within Python. On MacOS using SystemConfiguration, CIDR is supported out of the box, as is the short notation 10.0. The default implementation and the windows nt ProxyOverride registry key do not. Go and curl and wget all support CIDR notation, so despite not being standardized, there is precedent towards this.

In some environments, all outbound traffic is required to go through a proxy. However, traffic to internal services is allowed to be direct (for performance, or inherent trust, or any other reason). An example NO_PROXY may look like NO_PROXY=localhost,.localhost,127.0.0.1,127.0.0.2,0.0.0.0,169.254.169.254,10.0.0.0/8,.internal.,.internal,.local.,.local.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/support-cidr-notation-in-no-proxy/66292 - discussion was tepid but leant towards yes if a good PR was proposed. I'm working on that in tandem with this gh ticket.

Windows specifically: #149136

More generally: https://about.gitlab.com/blog/we-need-to-talk-no-proxy/

Linked PRs

  • gh-149746: Support CIDR entries in NO_PROXY #149744
  • gh-149746: Handle CIDRs in NO_PROXY env var #156336
Reacted by Accurio

Activity

  1. HeroCC
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on May 12, 2026
  2. picnixz
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    triagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.
    on May 12, 2026
  3. picnixz commented on May 12, 2026

    @picnixz
    picnixz
    on May 12, 2026
    Member
    More actions

    Note: I was the one suggesting to support CIDR notation for NO_PROXY.

  4. picnixz
    marked Standardize Windows proxy bypass (ProxyOverride) parsing to support wildcards and CIDR #149136 as a duplicate of this issue on May 12, 2026
  5. HeroCC commented on Aug 19, 2026

    @HeroCC
    HeroCC
    on Aug 19, 2026
    Author
    More actions

    Hey @picnixz - any chance you could take a look at the implementation? The PR was marked as stale, I don't want it to auto-close.

    Reacted by bais and Honglei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.