@social-mail/social-mail-web-server 1.7.183 → 1.7.185
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,7 +75,7 @@ let GeoIPService = class GeoIPService {
|
|
|
75
75
|
const db = scope.resolve(SocialMailContext);
|
|
76
76
|
const ipNumber = this.ipToNumber(ip);
|
|
77
77
|
let block = await db.geoIPBlocks
|
|
78
|
-
.where({ ipNumber }, (p) => (x) => x.blockStart
|
|
78
|
+
.where({ ipNumber }, (p) => (x) => x.blockStart <= p.ipNumber && x.blockEnd >= p.ipNumber)
|
|
79
79
|
.first();
|
|
80
80
|
if (block) {
|
|
81
81
|
if (DateTime.from(block.dateExpires) > DateTime.now) {
|