Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
greatcat19 committed Nov 7, 2023
1 parent a3f1523 commit fb3f440
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-pproxy/run
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ command="pproxy -l http://0.0.0.0:${PROXY_PORT}"
if [[ -n ${PROXY_USER:-} ]] && [[ -n ${PROXY_PASS:-} ]]; then
command="$command#${PROXY_USER}:${PROXY_PASS}"
fi
if [[ -n ${SOCKS_PORT:-} ]] ; then
command="-l socks5://0.0.0.0:${SOCKS_PORT}"

if [[ -n ${PROXY_USER:-} ]] && [[ -n ${PROXY_PASS:-} ]]; then
command="$command#${PROXY_USER}:${PROXY_PASS}"
fi
fi
command="$command -r socks5://127.0.0.1:8080"
command="$command --auth ${PROXY_AUTHTIME:-0}${PROXY_VERBOSE+ -v}"

Expand Down

0 comments on commit fb3f440

Please sign in to comment.