1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Server scripts update

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-03-02 08:52:33 +00:00
parent e87ff9af8e
commit 5cf11f2650
14 changed files with 104 additions and 42 deletions

View file

@ -9,11 +9,10 @@ fi
. "$(readlink -f "$1")"
DEV="gt${HOST:+c}-udp-$(basename "$1")"
DEV="gt-udp-$(basename "$1")"
exec glorytun \
bind from addr $BIND port $BIND_PORT \
bind to addr ${HOST:-::} port ${PORT:-5000} from addr $BIND port $BIND_PORT \
keyfile "$1".key \
${DEV:+dev "$DEV"} \
${HOST:+to addr "$HOST" port "$PORT"} \
${OPTIONS:+$OPTIONS}