Skip to content

Commit

Permalink
debugging host header mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
suculent committed Mar 18, 2024
1 parent a356eed commit 8f9f1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = function (app) {
res.header("Content-Type", "text/html; charset=utf-8");

if (req.header.host !== app_config.public_url) {
console.log("[warning] host header mismatch, possible hacking attempt...");
console.log("[warning] host header mismatch, possible hacking attempt: ", req.header.host, " != ", app_config.public_url);
}


Expand Down

0 comments on commit 8f9f1d4

Please sign in to comment.