mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-07 21:15:26 +00: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("192.168.")
|
||||||
|| (ip.startsWith("172.") && isInRange172(ip))
|
|| (ip.startsWith("172.") && isInRange172(ip))
|
||||||
|| ip.startsWith("127.")
|
|| ip.startsWith("127.")
|
||||||
|| ip.equals("0.0.0.0");
|
|| "0.0.0.0".equals(ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isInRange172(String ip) {
|
private boolean isInRange172(String ip) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user