diff --git a/assets/start-psiphon b/assets/start-psiphon index 669709d..8b43ccd 100644 --- a/assets/start-psiphon +++ b/assets/start-psiphon @@ -19,6 +19,9 @@ if [ ! -f /config/psiphon.config ]; then if [ -n "${EGRESS_REGION}" ]; then sed -i -E 's/"EgressRegion"[[:space:]]*:[[:space:]]*"[^"]*"/"EgressRegion": "'${EGRESS_REGION}'"/' /config/psiphon.config fi + if [ -n "${UPSTREAM_PROXY}" ]; then + sed -i -E 's/"UpstreamProxyUrl"[[:space:]]*:[[:space:]]*"[^"]*"/"UpstreamProxyUrl": "'"${UPSTREAM_PROXY}"'"/' /config/psiphon.config + fi fi id psiphon > /dev/null 2>&1