Browse Source

Docker: add options for multicast groups (#290)

pull/292/head
Jason Lyu 1 year ago
committed by GitHub
parent
commit
73ea4358cb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Dockerfile
  2. 4
      docker/entrypoint.sh

1
Dockerfile

@ -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=

4
docker/entrypoint.sh

@ -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" \

Loading…
Cancel
Save