Compatibility between EnvHttpProxyAgent and DNS interceptor #5303
SuperOleg39
started this conversation in
General
Replies: 2 comments 1 reply
-
|
On the one hand, I still want to cache DNS lookups for hosts from NO_PROXY list |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
By design coincidence, they are mutually exclusive, it was not meant to be like that from the beginning. Nonetheless, sadly I'm unsure whereas a backtrack can be easily implemented. If this stills the desire, a intermediate interceptor can be added to do that explicit backtrack. I can think of extending the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have a question about EnvHttpProxyAgent and dns interceptor.
Can you help me to understand, how I can handle relation between this two features?
We have a custom setup with replacible default undici Agent, and extensible interceptors list, like this:
Then, we have separate http proxy module where default Agent is replaced, like this:
The problem is, the same
interceptorslist is used, and DNS cache interceptor automatically passed intoEnvHttpProxyAgent.composelist. After than, requests hostname is resolved to IP before proxy, and regular proxy env rules with hostnames can't be applied.So, my question is more about how I need to treat relationship between this two:
Beta Was this translation helpful? Give feedback.
All reactions