mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add glorytun-udp IPv6 wan support
This commit is contained in:
parent
a5ecab5e76
commit
842ab954d0
1 changed files with 6 additions and 2 deletions
|
@ -56,11 +56,15 @@ start_instance() {
|
||||||
|
|
||||||
_log "starting ${PROG_NAME} ${1} instance $*"
|
_log "starting ${PROG_NAME} ${1} instance $*"
|
||||||
|
|
||||||
|
if [ "$mode" = "to" ]; then
|
||||||
|
bind="bind from addr :: port 5000 to addr $host port $port"
|
||||||
|
else
|
||||||
|
bind="bind from addr $host port $port to addr :: port 5000"
|
||||||
|
fi
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
|
|
||||||
procd_set_param command ${PROG} \
|
procd_set_param command ${PROG} \
|
||||||
${host:+bind ${mode} addr "$host"} \
|
${bind} \
|
||||||
${port:+port "$port"} \
|
|
||||||
${dev:+dev "$dev"} \
|
${dev:+dev "$dev"} \
|
||||||
keyfile /tmp/${PROG_NAME}-${1}.key \
|
keyfile /tmp/${PROG_NAME}-${1}.key \
|
||||||
persist
|
persist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue