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

linkname: remove usage of net.lookupStaticHost #899

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

mmatczuk
Copy link
Contributor

@mmatczuk mmatczuk commented Sep 5, 2024

Relates to #895


func TestIsLocalhost(t *testing.T) {
cfg := DefaultHTTPProxyConfig()
p, err := NewHTTPProxy(cfg, nil, nil, nil, stdlog.Default())
Copy link
Contributor

Choose a reason for hiding this comment

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

May we have a test for a handler mode too (newHTTPProxy)?

Copy link
Contributor

Choose a reason for hiding this comment

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

That suite should work without reading hosts file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can do that in a separate issue. It uses convention in this file.

@Choraden
Copy link
Contributor

Choraden commented Sep 9, 2024

Other than that - LGTM

@mmatczuk mmatczuk merged commit 991a76d into main Sep 9, 2024
7 checks passed
@mmatczuk mmatczuk deleted the mmt/remove_lookup_linkname branch September 9, 2024 10:17
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.

3 participants