Release 2.2.0-beta7
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
<groupId>com.fizzgate</groupId>
|
||||
<artifactId>fizz-bootstrap</artifactId>
|
||||
<version>2.2.0-beta6</version>
|
||||
<version>2.2.0-beta7</version>
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>fizz-gateway-community</artifactId>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
<version>2.2.0-beta6</version>
|
||||
<version>2.2.0-beta7</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>fizz-gateway-community</artifactId>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
<version>2.2.0-beta6</version>
|
||||
<version>2.2.0-beta7</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -285,22 +285,28 @@ public class FlowControlFilter extends FizzWebFilter {
|
||||
prev = resourceConfigs.get(sz - 1).getResourceId();
|
||||
prevPrev = resourceConfigs.get(sz - 2).getResourceId();
|
||||
|
||||
if (rateLimitConfig.type == ResourceRateLimitConfig.Type.APP && rateLimitConfig.path != null) {
|
||||
String app = ResourceRateLimitConfig.getApp(prev);
|
||||
if (app == null) {
|
||||
something4(resourceConfigs, rateLimitConfig.app, null, null);
|
||||
something4(resourceConfigs, rateLimitConfig.app, null, rateLimitConfig.service);
|
||||
} else {
|
||||
String service = ResourceRateLimitConfig.getService(prev);
|
||||
if (service == null) {
|
||||
something4(resourceConfigs, rateLimitConfig.app, null, rateLimitConfig.service);
|
||||
if (rateLimitConfig.type == ResourceRateLimitConfig.Type.APP) {
|
||||
String app = ResourceRateLimitConfig.getApp(prev);
|
||||
if (rateLimitConfig.path == null) {
|
||||
if (rateLimitConfig.service != null && app == null) {
|
||||
something4(resourceConfigs, rateLimitConfig.app, null, null);
|
||||
}
|
||||
} else {
|
||||
app = ResourceRateLimitConfig.getApp(prevPrev);
|
||||
if (app == null) {
|
||||
something4(resourceConfigs, rateLimitConfig.app, null, null);
|
||||
}
|
||||
if (app == null) {
|
||||
something4(resourceConfigs, rateLimitConfig.app, null, null);
|
||||
something4(resourceConfigs, rateLimitConfig.app, null, rateLimitConfig.service);
|
||||
} else {
|
||||
String service = ResourceRateLimitConfig.getService(prev);
|
||||
if (service == null) {
|
||||
something4(resourceConfigs, rateLimitConfig.app, null, rateLimitConfig.service);
|
||||
} else {
|
||||
app = ResourceRateLimitConfig.getApp(prevPrev);
|
||||
if (app == null) {
|
||||
something4(resourceConfigs, rateLimitConfig.app, null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else if (rateLimitConfig.type == ResourceRateLimitConfig.Type.IP) {
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>fizz-gateway-community</artifactId>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
<version>2.2.0-beta6</version>
|
||||
<version>2.2.0-beta7</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>fizz-gateway-community</artifactId>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
<version>2.2.0-beta6</version>
|
||||
<version>2.2.0-beta7</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
Reference in New Issue
Block a user