Allow private addresses to use http with ssl-required=external
This commit is contained in:
parent
6cbeeb1b1a
commit
c460630cf8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue