Skip to content

Commit

Permalink
Adds isLinkLocalAddress() to address checks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed May 15, 2022
1 parent 4deecee commit cf5c78a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/mxgraph/online/ProxyServlet.java
Expand Up @@ -254,6 +254,7 @@ public boolean checkUrlParameter(String url)
return (protocol.equals("http") || protocol.equals("https"))
&& !address.isAnyLocalAddress()
&& !address.isLoopbackAddress()
&& !address.isLinkLocalAddress()
&& !host.endsWith(".internal") // Redundant
&& !host.endsWith(".local") // Redundant
&& !host.contains("localhost") // Redundant
Expand Down

0 comments on commit cf5c78a

Please sign in to comment.