Update server.js
Ignore token if not configured
This commit is contained in:
parent
b8443040d1
commit
5012793f23
@ -209,7 +209,7 @@ app._initializeHTTP = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Auth the req
|
// Auth the req
|
||||||
if (req.params.token !== client.token) {
|
if (client.token && req.params.token !== client.token) {
|
||||||
res.sendStatus(401);
|
res.sendStatus(401);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user