Jason Lyu
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
0 deletions
-
Dockerfile
-
docker/entrypoint.sh
|
|
@ -25,6 +25,7 @@ ENV UDP_TIMEOUT= |
|
|
|
ENV TCP_SNDBUF= |
|
|
|
ENV TCP_RCVBUF= |
|
|
|
ENV TCP_AUTO_TUNING= |
|
|
|
ENV MULTICAST_GROUPS= |
|
|
|
ENV EXTRA_COMMANDS= |
|
|
|
ENV TUN_INCLUDED_ROUTES= |
|
|
|
ENV TUN_EXCLUDED_ROUTES= |
|
|
|
|
|
@ -81,6 +81,10 @@ run() { |
|
|
|
ARGS="$ARGS --tcp-auto-tuning" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -n "$MULTICAST_GROUPS" ]; then |
|
|
|
ARGS="$ARGS --multicast-groups $MULTICAST_GROUPS" |
|
|
|
fi |
|
|
|
|
|
|
|
exec tun2socks \ |
|
|
|
--loglevel "$LOGLEVEL" \ |
|
|
|
--fwmark "$FWMARK" \ |
|
|
|