Skip to content

Commit

Permalink
fixed cloudflare encapsulation issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
netptop committed May 15, 2020
1 parent 5b55faa commit be94956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit be94956

Please sign in to comment.