Comparing version 2.3.2 to 2.3.3
{ | ||
"name": "js2ray", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "The v2ray vmess protocol, based on nodejs javascript which you can use on hosts and servers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -85,5 +85,2 @@ | ||
if (aeadUser.ipCount != 0 && common.iplimit(app.ip, aeadUser)) | ||
return onerror(app, `maximum ip used by user ${aeadUser.id.UUID.toString("hex")}`, 1) | ||
if (aeadUser.traffic != 0 && common.trafficlimit(aeadUser)) { | ||
@@ -95,2 +92,4 @@ return onerror(app, `maximum traffic ${aeadUser.traffic / 1024 / 1024}MB (bytesRead:${aeadUser.bytesRead},bytesWrit:${aeadUser.bytesWrit}) used by user ${aeadUser.id.UUID.toString("hex")}`, 1) | ||
} | ||
if (aeadUser.ipCount != 0 && common.iplimit(app.ip, aeadUser)) | ||
return onerror(app, `maximum ip used by user ${aeadUser.id.UUID.toString("hex")}`, 1) | ||
@@ -223,4 +222,2 @@ if (reqCommand.length < 41) { | ||
return | ||
if (common.update_ip(app.ip, app.user)) | ||
return onerror(app, `maximum ip used by user ${app.user.id.UUID.toString("hex")}`, 1) | ||
if (app.user.traffic != 0 && common.trafficlimit(app.user)) | ||
@@ -231,2 +228,4 @@ return onerror(app, `maximum traffic ${app.user.traffic / 1024 / 1024}MB (bytesRead:${app.user.bytesRead},bytesWrit:${app.user.bytesWrit}) used by user ${app.user.id.UUID.toString("hex")}`, 1); | ||
} | ||
if (common.update_ip(app.ip, app.user)) | ||
return onerror(app, `maximum ip used by user ${app.user.id.UUID.toString("hex")}`, 1) | ||
app._adBuf.put(buffer, app); | ||
@@ -233,0 +232,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137661