tailscale-dev / docker-mod

The home for our universal Docker mod
BSD 3-Clause "New" or "Revised" License
63 stars 30 forks source link

Incorrect Exit node environment variables #6

Open RoboMagus opened 1 year ago

RoboMagus commented 1 year ago

While trying to configure the docker mod for creating an exit node I came accross an inconsistency in the use of environment variables causing the setup of exit node to be more problematic than it should be:


if [ -v TAILSCALE_BE_EXIT_NODE ]; then
    echo '[!] acting as an exit node, you may need to approve this in the admin console'
    FLAGS="${FLAGS} --advertise-exit-node=${TS_BE_EXIT_NODE}"
fi

As well as it not being mentioned in the documentation.