Browse Source

Merge pull request #12692 from qweaszxcdf/openfortivpn

openfortivpn: Remove pingcheck and use l3_device instead
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
35734b81cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 12 deletions
  1. +1
    -1
      net/openfortivpn/Makefile
  2. +1
    -11
      net/openfortivpn/files/openfortivpn.sh

+ 1
- 1
net/openfortivpn/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openfortivpn
PKG_VERSION:=1.14.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/adrienverge/openfortivpn/tar.gz/v$(PKG_VERSION)?


+ 1
- 11
net/openfortivpn/files/openfortivpn.sh View File

@ -36,7 +36,7 @@ proto_openfortivpn_setup() {
[ -n "$iface_name" ] && {
json_load "$(ifstatus $iface_name)"
json_get_var iface_device_name device
json_get_var iface_device_name l3_device
json_get_var iface_device_up up
}
@ -59,16 +59,6 @@ proto_openfortivpn_setup() {
exit 1
}
[ -n $iface_name ] && {
ping -I $iface_device_name -c 1 -w 10 $server_ip > /dev/null 2>&1 || {
logger -t "openfortivpn" "$config: failed to ping $server_ip on $iface_device_name"
sleep 10
proto_notify_error "$config" "failed to ping $server_ip on $iface_device_name"
proto_setup_failed "$config"
exit 1
}
}
for ip in $(resolveip -t 10 "$server"); do
logger -t "openfortivpn" "$config: adding host dependency for $ip on $iface_name at $config"
proto_add_host_dependency "$config" "$ip" "$iface_name"


Loading…
Cancel
Save