Browse Source

Chore: add udp-timeout option to docker image

pull/76/head
xjasonlyu 4 years ago
parent
commit
6887c1180e
  1. 1
      Dockerfile
  2. 4
      docker/entrypoint.sh

1
Dockerfile

@ -23,6 +23,7 @@ ENV PROXY=direct://
ENV MTU=9000
ENV STATS=
ENV TOKEN=
ENV UDP_TIMEOUT=
ENV EXTRA_COMMANDS=
ENV TUN_INCLUDED_ROUTES=
ENV TUN_EXCLUDED_ROUTES=

4
docker/entrypoint.sh

@ -69,6 +69,10 @@ main() {
ARGS="$ARGS -token $TOKEN"
fi
if [ -n "$UDP_TIMEOUT" ]; then
ARGS="$ARGS -udp-timeout $UDP_TIMEOUT"
fi
exec tun2socks \
-loglevel "$LOGLEVEL" \
-fwmark "$FWMARK" \

Loading…
Cancel
Save