Skip to content

Commit

Permalink
Docker: Bypass traffic to proxy, to avoid recursive proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
WankkoRee committed Jul 6, 2024
1 parent 431bba6 commit 0379dfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ SOCKS5_PASSWORD="${SOCKS5_PASSWORD:-}"
SOCKS5_UDP_MODE="${SOCKS5_UDP_MODE:-udp}"

IPV4_INCLUDED_ROUTES="${IPV4_INCLUDED_ROUTES:-0.0.0.0/0}"
echo $IPV4_INCLUDED_ROUTES
IPV4_EXCLUDED_ROUTES="${IPV4_EXCLUDED_ROUTES:-}"

LOG_LEVEL="${LOG_LEVEL:-warn}"
Expand Down Expand Up @@ -56,6 +55,8 @@ config_route() {
echo "ip rule add to ${addr} table ${TABLE}" >> /route.sh
done

echo "ip rule add to ${SOCKS5_ADDR} table main" >> /route.sh

for addr in $(echo ${IPV4_EXCLUDED_ROUTES} | tr ',' '\n'); do
echo "ip rule add to ${addr} table main" >> /route.sh
done
Expand Down

0 comments on commit 0379dfe

Please sign in to comment.