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
|
||||
if (req.params.token !== client.token) {
|
||||
if (client.token && req.params.token !== client.token) {
|
||||
res.sendStatus(401);
|
||||
return;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user