mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
Chore: add udp-timeout option to docker image
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user