Skip to content

Commit be94956

Browse files
committed
fixed cloudflare encapsulation issue.
1 parent 5b55faa commit be94956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ let Proxy = ({blockedSites, urlModify, httpprefix, serverName, port, cookieDomai
354354
let timestr = new Date().toISOString()
355355
console.log(`[${timestr}] route:${fwdStr}, httpType:${httpType}, host:${host}`)
356356
if (host.indexOf(serverName) !== -1 || // we cannot request resource from proxy itself
357-
host == '' || host.indexOf('.') === -1 || (fwdStr && fwdStr.split(',').length > 1)) { // too many forwardings
357+
host == '' || host.indexOf('.') === -1 || (fwdStr && fwdStr.split(',').length > 3)) { // too many forwardings
358358
res.status(404).send("{}")
359359
return
360360
}

0 commit comments

Comments
 (0)