mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-02-12 19:31:54 +00:00
22 lines
343 B
Text
22 lines
343 B
Text
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if [ ! -f "$1" ]; then
|
||
|
echo "usage: $(basename "$0") FILE"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
. "$(readlink -f "$1")"
|
||
|
|
||
|
DEV="gt${HOST:+c}-$(basename "$1")"
|
||
|
|
||
|
exec glorytun-tcp \
|
||
|
${SERVER:+listener} \
|
||
|
keyfile "$1".key \
|
||
|
${DEV:+dev "$DEV"} \
|
||
|
${HOST:+host "$HOST"} \
|
||
|
${PORT:+port "$PORT"} \
|
||
|
${MPTCP:+mptcp} \
|
||
|
${OPTIONS:+$OPTIONS}
|