1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-02-12 19:31:54 +00:00
openmptcprouter-vps/glorytun-udp-run

20 lines
307 B
Text
Raw Normal View History

2018-05-04 06:28:28 +00:00
#!/bin/sh
set -e
if [ ! -f "$1" ]; then
echo "usage: $(basename "$0") FILE"
exit 1
fi
. "$(readlink -f "$1")"
DEV="gt${HOST:+c}-udp-$(basename "$1")"
exec glorytun \
bind $BIND $BIND_PORT \
keyfile "$1".key \
2018-05-04 06:28:28 +00:00
${DEV:+dev "$DEV"} \
${HOST:+to "$HOST" "$PORT"} \
${OPTIONS:+$OPTIONS}