Merge pull request #260 from cubedro/develop
Added secret split by | char
This commit is contained in:
commit
5f3dffcc1f
9
app.js
9
app.js
@ -11,7 +11,14 @@ if( !_.isUndefined(process.env.WS_SECRET) && !_.isNull(process.env.WS_SECRET) )
|
|||||||
}
|
}
|
||||||
else
|
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;
|
var banned = require('./lib/utils/config').banned;
|
||||||
|
Loading…
Reference in New Issue
Block a user