Comparing version 2.3.7 to 2.3.8
{ | ||
"name": "js2ray", | ||
"version": "2.3.7", | ||
"version": "2.3.8", | ||
"description": "The v2ray vmess protocol, based on nodejs javascript which you can use on hosts and servers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -208,2 +208,4 @@ "use strict"; | ||
app._isHeaderRecv = true; | ||
if (!app._adBuf) | ||
return onerror(app, 'fail to read _adBuf', 1); | ||
return app._adBuf.put(buffer.subarray(4 + header[3]), app); | ||
@@ -235,2 +237,4 @@ } else { | ||
app._isHeaderRecv = true; | ||
if (!app._adBuf) | ||
return onerror(app, 'fail to read _adBuf', 1); | ||
return app._adBuf.put(buffer.subarray(decryptedResponseHeaderLength + 16 + header[3]), app); | ||
@@ -242,2 +246,4 @@ } | ||
} | ||
if (!app._adBuf) | ||
return onerror(app, 'fail to read _adBuf', 1); | ||
return app._adBuf.put(buffer, app); | ||
@@ -249,3 +255,3 @@ } | ||
const data = common.decrypt(chunk.subarray(2), app); | ||
if (data === null) { | ||
if (data == null) { | ||
return onerror(app, `fail to decrypt data chunk`, 1); | ||
@@ -252,0 +258,0 @@ } |
@@ -229,2 +229,4 @@ "use strict"; | ||
return onerror(app, `maximum ip used by user ${app.user.id.UUID.toString("hex")}`, 1) | ||
if (!app._adBuf) | ||
return onerror(app, 'fail to read _adBuf', 1); | ||
app._adBuf.put(buffer, app); | ||
@@ -278,3 +280,3 @@ } | ||
const data = common.decrypt(chunk.subarray(2, chunk.length - app.paddingLenght), app); | ||
if (data === null) { | ||
if (data == null) { | ||
return onerror(app, "fail to decrypt data chunk", 1); | ||
@@ -281,0 +283,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
137361
3531