Chore: add udp-timeout option to docker image

This commit is contained in:
xjasonlyu
2021-02-28 14:16:23 +08:00
parent 9502706ed9
commit 6887c1180e
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -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
View File
@@ -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" \