Commit 20a782b4 by 王勇飞

pp

parent 87f5c255
...@@ -88,7 +88,8 @@ module.exports = function (app) { ...@@ -88,7 +88,8 @@ module.exports = function (app) {
app.post("*", async function (req, res, next) { app.post("*", async function (req, res, next) {
try { try {
let channel; let channel;
let sourceHost = req.headers["x-forwarded-host"]; // let sourceHost = req.headers["x-forwarded-host"];
let sourceHost = req.hostname;
if (sourceHost in channelCache) { if (sourceHost in channelCache) {
channel = channelCache[sourceHost]; channel = channelCache[sourceHost];
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment