Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/socket-proxy/handlehttprequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ func isAllowedClient(clientIPStr string) (bool, error) {
_, allowedIPNet, err := net.ParseCIDR(allowFromItem)
if err == nil {
// AllowFrom is a valid CIDR, so check if IP address is in allowed network
return allowedIPNet.Contains(clientIP), nil
if allowedIPNet.Contains(clientIP) {
return true, nil
}
continue
}

// AllowFrom is not a valid CIDR, so try to resolve it via DNS
Expand Down