Merge branch 'develop' into hazelnoot/following-timeline
This commit is contained in:
commit
484a39c658
@ -260,6 +260,11 @@ export class ApiCallService implements OnApplicationShutdown {
|
|||||||
const meta = await this.metaService.fetch();
|
const meta = await this.metaService.fetch();
|
||||||
if (!meta.enableIpLogging) return;
|
if (!meta.enableIpLogging) return;
|
||||||
const ip = request.ip;
|
const ip = request.ip;
|
||||||
|
if (!ip) {
|
||||||
|
this.logger.warn(`user ${user.id} has a null IP address; please check your network configuration.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const ips = this.userIpHistories.get(user.id);
|
const ips = this.userIpHistories.get(user.id);
|
||||||
if (ips == null || !ips.has(ip)) {
|
if (ips == null || !ips.has(ip)) {
|
||||||
if (ips == null) {
|
if (ips == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user