Skip to content

Commit

Permalink
log denied access attempts on server
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Bethge committed Sep 29, 2016
1 parent 2c758a9 commit 5899497
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var Server = function(config, callback) {
if (err === undefined) {
return next();
}
console.log(err.message);
res.status(403).send("This device is not allowed to access your mirror. <br> Please check your config.js or config.js.sample to change this.");
});
});
Expand Down

0 comments on commit 5899497

Please sign in to comment.