fix some new lint warnings

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-02-15 21:13:45 +01:00
parent 757185256c
commit ad75543172
8 changed files with 48 additions and 64 deletions

View File

@@ -156,7 +156,7 @@ type Binding struct {
func (b *Binding) parseAllowedProxy() error {
if filepath.IsAbs(b.Address) && len(b.ProxyAllowed) > 0 {
// unix domain socket
b.allowHeadersFrom = []func(net.IP) bool{func(ip net.IP) bool { return true }}
b.allowHeadersFrom = []func(net.IP) bool{func(_ net.IP) bool { return true }}
return nil
}
allowedFuncs, err := util.ParseAllowedIPAndRanges(b.ProxyAllowed)