Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed condition, when local dns lookup should happen. #1272

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ulikl
Copy link

@ulikl ulikl commented Jul 26, 2024

Bug was introduced with option proxy_from_enviroment with release V0.24.
fixes Issue #1154

@ulikl ulikl force-pushed the fix-SkipResolvePhaseWithProxy branch from b94daf7 to 0412f5a Compare July 30, 2024 09:12
Bug was introduced with option proy_from_enviroment with release V0.24.

Signed-off-by: Ulrike Klusik <[email protected]>
@ulikl ulikl force-pushed the fix-SkipResolvePhaseWithProxy branch from 0412f5a to 54ea96b Compare July 30, 2024 09:13
@github-actions github-actions bot added the stale label Dec 30, 2024
@@ -328,7 +328,7 @@ func ProbeHTTP(ctx context.Context, target string, module config.Module, registr
targetPort := targetURL.Port()

var ip *net.IPAddr
if !module.HTTP.SkipResolvePhaseWithProxy || module.HTTP.HTTPClientConfig.ProxyConfig.ProxyURL.URL == nil || module.HTTP.HTTPClientConfig.ProxyConfig.ProxyFromEnvironment {
if !module.HTTP.SkipResolvePhaseWithProxy || (module.HTTP.HTTPClientConfig.ProxyConfig.ProxyURL.URL == nil && !module.HTTP.HTTPClientConfig.ProxyConfig.ProxyFromEnvironment) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a test to reproduce issue #1154 and show that this change in logic fixes that??

@github-actions github-actions bot removed the stale label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants