From 2a99df0588e168660d3b528209d8f51689ca92b7 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 7 Jul 2023 16:17:39 +0200 Subject: [feature] enable + document explicit IP dialer allowing/denying (#1950) * [feature] enable + document explicit IP dialer allowing/denying * lord have mercy * allee jonge * shortcut check ipv6 prefixes * comment * separate httpclient_test, export Sanitizer --- internal/httpclient/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/httpclient/client.go') diff --git a/internal/httpclient/client.go b/internal/httpclient/client.go index 2a2485561..65c521113 100644 --- a/internal/httpclient/client.go +++ b/internal/httpclient/client.go @@ -130,9 +130,9 @@ func New(cfg Config) *Client { } // Protect dialer with IP range sanitizer. - d.Control = (&sanitizer{ - allow: cfg.AllowRanges, - block: cfg.BlockRanges, + d.Control = (&Sanitizer{ + Allow: cfg.AllowRanges, + Block: cfg.BlockRanges, }).Sanitize // Prepare client fields. -- cgit v1.2.3