Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
totravel committed Apr 11, 2021
1 parent 636103a commit 70e0f2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shadowsocks-ws",
"version": "4.0",
"version": "4.0.1",
"description": "Shadowsocks over WebSocket",
"scripts": {
"start": "node server.js"
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { EVP_BytesToKey } = require('./crypto');

const PORT = process.env.PORT || 80;
const PASS = process.env.PASS || 'secret';
const METHOD = process.env.METHOD || 'chacha20-poly1305';
const METHOD = process.env.METHOD === 'aes-256-gcm' ? 'aes-256-gcm' : 'chacha20-poly1305';
const TIMEOUT = process.env.TIMEOUT || 5;
const KEY = EVP_BytesToKey(PASS, keySize[METHOD]).key;

Expand Down

0 comments on commit 70e0f2b

Please sign in to comment.