We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2cee31 commit 5852c43Copy full SHA for 5852c43
src/main/java/org/elasticsearch/plugin/readonlyrest/acl/blocks/rules/IPMask.java
@@ -86,6 +86,10 @@ private static int addrToInt(Inet4Address i4addr) {
86
*/
87
public boolean matches(Inet4Address testAddr) {
88
int testAddrInt = addrToInt(testAddr);
89
+ // Always allow 0.0.0.0/0 as a wild card
90
+ if (maskInt == -1 && addrInt == 0) {
91
+ return true;
92
+ }
93
return (addrInt & maskInt) == (testAddrInt & maskInt);
94
}
95
0 commit comments