Skip to content

Commit a3a71df

Browse files
committed
Fixed boundary case
1 parent 1a83427 commit a3a71df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ip2proxy-nodejs",
3-
"version": "4.2.2",
3+
"version": "4.2.3",
44
"description": "IP2Proxy proxy detection component",
55
"keywords": [
66
"vpn-detection",

src/ip2proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var fs = require("fs");
33
var https = require("https");
44

55
// For BIN queries
6-
const VERSION = "4.2.2";
6+
const VERSION = "4.2.3";
77
const MAX_INDEX = 65536;
88
const COUNTRY_POSITION = [0, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3];
99
const REGION_POSITION = [0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4];
@@ -488,7 +488,7 @@ class IP2Proxy {
488488
ipFrom = BigInt(ipFrom);
489489
ipTo = BigInt(ipTo);
490490

491-
if (ipFrom <= ipNumber && ipTo >= ipNumber) {
491+
if (ipFrom <= ipNumber && ipTo > ipNumber) {
492492
loadMesg(data, MSG_NOT_SUPPORTED); // load default message
493493

494494
let rowLen = columnSize - firstCol;

0 commit comments

Comments
 (0)