Remove unixsocket check. filter on q2t is now disabled.
Add localhost ip to whitelist
@@ -60,11 +60,6 @@ public class IPWhitelistFilter implements ContainerRequestFilter {
return;
}
- // this is the unix socket request, so let it through the filter
- if ("unixsocket".equals(requestContext.getUriInfo().getBaseUri().toString())) {
- return;
- }
-
try {
final Set<String> whitelisted =
@@ -74,6 +69,11 @@ public class IPWhitelistFilter implements ContainerRequestFilter {
.map(URL::getHost)
.collect(Collectors.toSet());
+ if (whitelisted.contains("localhost")) {
+ whitelisted.add("127.0.0.1");
+ whitelisted.add("0:0:0:0:0:0:0:1");
+ }
+
final String remoteAddress = httpServletRequest.getRemoteAddr();
final String remoteHost = httpServletRequest.getRemoteHost();
