🎉 Sync 2026-10-24 00:22:39

This commit is contained in:
github-actions[bot] committed 2026-10-24 00:22:39 +08:00
1 parent 6fa3534628
commit c3de2c6cdf
97 files changed
+7985 -3245

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ PKG_SOURCE_URL:=https://github.com/Ysurac/dsvpn.git
PKG_SOURCE_VERSION:=aae011339bba733d3fa4ffe8b5dd95dab2efb4ab
PKG_NAME:=dsvpn
PKG_VERSION:=0.1.5
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
+10 -2
View File
@@ -84,8 +84,16 @@ start_instance() {
uci -q commit network
fi
ip addr flush $dev
sleep 2
# dsvpn adds the tun address once, on its first connection, and procd
# keeps an unchanged instance across a reload: flushing on every reload
# left the running tunnel without an address. Only the tun of an
# instance that is going away (restart) needs it. procd_running would
# reset the jshn message start_service is building, ask ubus directly.
if [ -d "/sys/class/net/$dev" ] &&
[ "$(ubus call service list "{\"name\":\"${PROG_NAME}\"}" 2>/dev/null | jsonfilter -q -l 1 -e "@['${PROG_NAME}'].instances[*].running")" != "true" ]; then
ip addr flush dev "$dev"
sleep 2
fi
_log "starting ${PROG_NAME} ${1} instance $*"