Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js2ray

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js2ray - npm Package Compare versions

Comparing version 2.3.7 to 2.3.8

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc