Allow private addresses to use http with ssl-required=external

This commit is contained in:
Stian Thorgersen 2014-08-01 15:05:45 +01:00
parent 6cbeeb1b1a
commit c460630cf8

View file

@ -34,7 +34,7 @@ public enum SslRequired {
private boolean isLocal(String remoteAddress) {
try {
InetAddress inetAddress = InetAddress.getByName(remoteAddress);
return inetAddress.isAnyLocalAddress() || inetAddress.isLoopbackAddress();
return inetAddress.isAnyLocalAddress() || inetAddress.isLoopbackAddress() || inetAddress.isSiteLocalAddress();
} catch (UnknownHostException e) {
return false;
}