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

Update proxy configuration by ethomson · Pull Request #6026 · libgit2/libgit2 · GitHub

Update proxy configuration - #6026

Merged
ethomson merged 7 commits into
mainfrom
ethomson/proxy
Sep 2, 2021
Merged

ethomson merged 7 commits into
mainfrom
ethomson/proxy

Conversation

ethomson commented Sep 2, 2021

Copy link
Copy Markdown
Member
  • Include NO_PROXY support from Add NO_PROXY env support #5796
  • Support http.<url>.proxy configuration options
  • Support empty configuration option to override less specific proxy settings in environment or configuration

Fixes #4164

sathieu and others added 6 commits September 1, 2021 20:39
Item 2 of 3 from #4164

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Introduce a utility function that compares a NUL terminated string to a
possibly not-NUL terminated string with length.  This is similar to
`strncmp` but with an added check to ensure that the lengths match (not
just the `size` portion of the two strings).
Provide a method to determine if a given URL matches a host:port pattern
like the ones found in `NO_PROXY` environment variables.
Provide a utility method on a url to determine if it matches any pattern
in a comma-separated list, similar to what one would find in `NO_PROXY`
environment variables.
ethomson force-pushed the ethomson/proxy branch 2 times, most recently from 022f6c7 to 25bec84 Compare September 2, 2021 01:07
Update the proxy detection for a remote.

1. Honor `http.<url>.proxy` syntax for a remote's direct URL and
   parent URLs.
2. Honor an empty configuration URL to override a proxy configuration.

Add tests to ensure that configuration specificity is honored.
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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle less common proxy configuration options

2 participants


Back | FazBrowse Home | New Git URL