mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-07-28 13:47:43 +02:00
Switch order of literals to prevent NullPointerException
This commit is contained in:
parent
b69c3a0ea9
commit
b4b8182575
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user