@@ -4,7 +4,7 @@ const fsp = fs.promises;
44const https = require ( "https" ) ;
55
66// For BIN queries
7- const VERSION = "4.4 .0" ;
7+ const VERSION = "4.5 .0" ;
88const MAX_INDEX = 65536 ;
99const COUNTRY_POSITION = [ 0 , 2 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 ] ;
1010const REGION_POSITION = [ 0 , 0 , 0 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 ] ;
@@ -834,7 +834,7 @@ class IP2Proxy {
834834 if ( data . countryShort == "-" || data . proxyType == "-" ) {
835835 data . isProxy = 0 ;
836836 } else {
837- if ( data . proxyType == "DCH" || data . proxyType == "SES" ) {
837+ if ( data . proxyType == "DCH" || data . proxyType == "SES" || data . proxyType == "AIC" ) {
838838 data . isProxy = 2 ;
839839 } else {
840840 data . isProxy = 1 ;
@@ -1070,7 +1070,7 @@ class IP2Proxy {
10701070 if ( data . countryShort == "-" || data . proxyType == "-" ) {
10711071 data . isProxy = 0 ;
10721072 } else {
1073- if ( data . proxyType == "DCH" || data . proxyType == "SES" ) {
1073+ if ( data . proxyType == "DCH" || data . proxyType == "SES" || data . proxyType == "AIC" ) {
10741074 data . isProxy = 2 ;
10751075 } else {
10761076 data . isProxy = 1 ;
@@ -1212,8 +1212,8 @@ class IP2Proxy {
12121212 isProxy ( myIP ) {
12131213 // -1 is error
12141214 // 0 is not a proxy
1215- // 1 is proxy except DCH and SES
1216- // 2 is proxy and DCH or SES
1215+ // 1 is proxy except DCH and SES and AIC
1216+ // 2 is proxy and DCH or SES or AIC
12171217 let data = this . proxyQuery ( myIP , MODES . IS_PROXY ) ;
12181218 return data . isProxy ;
12191219 }
@@ -1222,8 +1222,8 @@ class IP2Proxy {
12221222 async isProxyAsync ( myIP ) {
12231223 // -1 is error
12241224 // 0 is not a proxy
1225- // 1 is proxy except DCH and SES
1226- // 2 is proxy and DCH or SES
1225+ // 1 is proxy except DCH and SES and AIC
1226+ // 2 is proxy and DCH or SES or AIC
12271227 let data = await this . proxyQueryAsync ( myIP , MODES . IS_PROXY ) ;
12281228 return data . isProxy ;
12291229 }
0 commit comments