From be94956621646a449047f944d20312332af29162 Mon Sep 17 00:00:00 2001 From: netptop Date: Fri, 15 May 2020 18:24:16 -0400 Subject: [PATCH] fixed cloudflare encapsulation issue. --- Proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Proxy.js b/Proxy.js index 8705f5b..0bfe81d 100644 --- a/Proxy.js +++ b/Proxy.js @@ -354,7 +354,7 @@ let Proxy = ({blockedSites, urlModify, httpprefix, serverName, port, cookieDomai let timestr = new Date().toISOString() console.log(`[${timestr}] route:${fwdStr}, httpType:${httpType}, host:${host}`) if (host.indexOf(serverName) !== -1 || // we cannot request resource from proxy itself - host == '' || host.indexOf('.') === -1 || (fwdStr && fwdStr.split(',').length > 1)) { // too many forwardings + host == '' || host.indexOf('.') === -1 || (fwdStr && fwdStr.split(',').length > 3)) { // too many forwardings res.status(404).send("{}") return }