mirror of
https://github.com/denuitt1/mhr-cfw.git
synced 2026-05-18 23:54:35 +03:00
Revert "feat(forwarder): scope upstream forwarder via forwarder_hosts config"
This commit is contained in:
@@ -38,9 +38,7 @@ export default {
|
||||
}
|
||||
|
||||
const upstreamUrl = (env && env.UPSTREAM_FORWARDER_URL) || "";
|
||||
// f === 1: forward; f === 0: skip; missing: legacy client → forward (compat).
|
||||
const wantForward = (req.f === 1) || (req.f === undefined);
|
||||
if (upstreamUrl && wantForward) {
|
||||
if (upstreamUrl) {
|
||||
const upstreamResp = await forwardViaUpstream(req, env, upstreamUrl);
|
||||
if (upstreamResp) return upstreamResp;
|
||||
// fall through to direct fetch only when fail-mode is open
|
||||
|
||||
Reference in New Issue
Block a user