Switch order of literals to prevent NullPointerException

This commit is contained in:
pixeebot[bot] 2025-07-21 14:07:29 +00:00 committed by GitHub
parent b69c3a0ea9
commit b4b8182575
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,7 +182,7 @@ public class SsrfProtectionService {
|| ip.startsWith("192.168.")
|| (ip.startsWith("172.") && isInRange172(ip))
|| ip.startsWith("127.")
|| ip.equals("0.0.0.0");
|| "0.0.0.0".equals(ip);
}
private boolean isInRange172(String ip) {