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 {
return false;
}
const noConnectCountLimit = this.ctx.config.getBoolean(
'NO_CONNECT_COUNT_LIMIT',
);
if (noConnectCountLimit) {
return false;
}
// Decrement count for previous IP
if (prevIp) {
const prevCount = await this.getConnectedIpCount(prevIp);
......@@ -128,9 +136,6 @@ export class IpResolver {
client.isLocal = isLocal;
// Increment count for new IP
const noConnectCountLimit = this.ctx.config.getBoolean(
'NO_CONNECT_COUNT_LIMIT',
);
let connectCount = await this.getConnectedIpCount(newIp);
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