travelmate: update 2.0.8-3
authorDirk Brenken <dev@brenken.org>
Mon, 27 Jun 2022 09:27:17 +0000 (11:27 +0200)
committerDirk Brenken <dev@brenken.org>
Mon, 27 Jun 2022 09:28:17 +0000 (11:28 +0200)
* refine vpn timeout

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit f0477d94993ab1ec297b317fbb6a167ed7c482ca)

net/travelmate/Makefile
net/travelmate/files/travelmate.vpn

index 861be6544f2fe2b4c5d404b897cd5a1cbf48c274..baef13d780b59e126f1ade15c2f40f3289d056d0 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=travelmate
 PKG_VERSION:=2.0.8
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index bd05598bfbac4456d5e87961cc7478d7256a930c..0bffa1286d6800b28e9a59b60ddd2734a6773c9f 100755 (executable)
@@ -67,7 +67,7 @@ if [ "${vpn}" = "1" ] && [ "${vpn_action}" = "enable" ] && [ "${vpn_status:-"fal
                                break
                        fi
                fi
-               if [ "${cnt}" -ge "$((trm_maxwait / 6))" ]; then
+               if [ "${cnt}" -ge "$((trm_maxwait / 3))" ]; then
                        "${trm_logger}" -p "info" -t "trm-vpn  [${$}]" "${vpn_service} client connection can't be established" 2>/dev/null
                        ubus call network.interface."${vpn_iface}" down
                        exit 1