diff options
author | 2023-07-07 16:17:39 +0200 | |
---|---|---|
committer | 2023-07-07 16:17:39 +0200 | |
commit | 2a99df0588e168660d3b528209d8f51689ca92b7 (patch) | |
tree | a5835c3a0adf81ad4f07938919699fbc0de4a69b /internal/httpclient/client.go | |
parent | [bugfix] Reorder web view logic, other small fixes (#1954) (diff) | |
download | gotosocial-2a99df0588e168660d3b528209d8f51689ca92b7.tar.xz |
[feature] enable + document explicit IP dialer allowing/denying (#1950)v0.10.0-rc1
* [feature] enable + document explicit IP dialer allowing/denying
* lord have mercy
* allee jonge
* shortcut check ipv6 prefixes
* comment
* separate httpclient_test, export Sanitizer
Diffstat (limited to 'internal/httpclient/client.go')
-rw-r--r-- | internal/httpclient/client.go | 6 |
1 files changed, 3 insertions, 3 deletions
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. |