fixed ws login
This commit is contained in:
parent
73b4a930d9
commit
06ed561947
2
app.js
2
app.js
@ -44,7 +44,7 @@ api.on('connection', function(spark) {
|
|||||||
console.log('got hello data from ', spark.id);
|
console.log('got hello data from ', spark.id);
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|
||||||
if(typeof data.secret === 'undefined' || data.secret !== process.env.WS_SECRET)
|
if(typeof data.secret === 'undefined' || data.secret !== WS_SECRET)
|
||||||
{
|
{
|
||||||
spark.end(undefined, { reconnect: false });
|
spark.end(undefined, { reconnect: false });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user