Commit 20a7d877 authored by nanahira's avatar nanahira

fix

parent d797d967
Pipeline #43471 passed with stages
in 1 minute and 59 seconds
...@@ -112,6 +112,14 @@ export class IpResolver { ...@@ -112,6 +112,14 @@ export class IpResolver {
return false; return false;
} }
const noConnectCountLimit = this.ctx.config.getBoolean(
'NO_CONNECT_COUNT_LIMIT',
);
if (noConnectCountLimit) {
return false;
}
// Decrement count for previous IP // Decrement count for previous IP
if (prevIp) { if (prevIp) {
const prevCount = await this.getConnectedIpCount(prevIp); const prevCount = await this.getConnectedIpCount(prevIp);
...@@ -128,9 +136,6 @@ export class IpResolver { ...@@ -128,9 +136,6 @@ export class IpResolver {
client.isLocal = isLocal; client.isLocal = isLocal;
// Increment count for new IP // Increment count for new IP
const noConnectCountLimit = this.ctx.config.getBoolean(
'NO_CONNECT_COUNT_LIMIT',
);
let connectCount = await this.getConnectedIpCount(newIp); let connectCount = await this.getConnectedIpCount(newIp);
if ( if (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment