Skip to content

Conversation

@mmatczuk
Copy link
Contributor

@mmatczuk mmatczuk commented Sep 5, 2024

Relates to #895

@mmatczuk mmatczuk requested a review from Choraden as a code owner September 5, 2024 11:53

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
@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.

4 participants