added secret split by | char
This commit is contained in:
parent
8573431f9f
commit
c2a98f5728
7
app.js
7
app.js
@ -10,9 +10,16 @@ if( !_.isUndefined(process.env.WS_SECRET) && !_.isNull(process.env.WS_SECRET) )
|
||||
WS_SECRET = ["eth-net-stats-has-a-secret"];
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user