Add support for no_proxy environment variable for .NET Framework target. #3200
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
A previous PR added support for .NET Framework to honor the
https_proxy
andhttp_proxy
environment variables. Some users need to exclude the use of thehttps_proxy
via theno_proxy
. In particular when running in a private VPC with some endpoints using VPC endpoints and other request going through a proxy.The full implementation of
no_proxy
would involve DNS resolution to IP address and CIDR matching. That is a much larger scope to integrate into the SDK and for the SDK's use cases unlikely to be needed. This implementation does host name matching with wildcard support matching the Java and Kotlin SDK's implementation.Motivation and Context
Issue 3198
Testing
Add new unit tests and have manually verified making service calls with a bad proxy set in the
https_proxy
and the request failed then when theno_proxy
environment variable was set the request was successful.Internal dry run was successful.
Types of changes
Checklist
License