mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-30 14:06:48 +02:00
Fix for GHSA-j2hp-6m75-v4j4
This commit is contained in:
@@ -41,7 +41,7 @@ func VerifySourceNetwork(addr string) error {
|
||||
return ErrInvalidSourceAddress
|
||||
}
|
||||
|
||||
if !config.AllowLoopbackSourceAddresses && ip.IsLoopback() {
|
||||
if !config.AllowLoopbackSourceAddresses && (ip.IsLoopback() || ip.IsUnspecified()) {
|
||||
return ErrSourceAddressNotAllowed
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user