From c2a98f57281af8561ababba02948c4024ec2900c Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 17 Aug 2015 17:07:26 +0300 Subject: [PATCH] added secret split by | char --- app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index e1e57f6..2819261 100644 --- a/app.js +++ b/app.js @@ -11,7 +11,14 @@ if( !_.isUndefined(process.env.WS_SECRET) && !_.isNull(process.env.WS_SECRET) ) } else { - WS_SECRET = [process.env.WS_SECRET]; + if( process.env.WS_SECRET.indexOf('|') > 0 ) + { + WS_SECRET = process.env.WS_SECRET.split('|'); + } + else + { + WS_SECRET = [process.env.WS_SECRET]; + } } var banned = require('./lib/utils/config').banned;