Browse Source

openconnect: disabled the resolving code from ppp in netifd script

That code was causing netifd disabling openconnect with no way
to restart it.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lilik-openwrt-22.03
Nikos Mavrogiannopoulos 9 years ago
parent
commit
8661ebeefa
2 changed files with 12 additions and 12 deletions
  1. +1
    -1
      net/openconnect/Makefile
  2. +11
    -11
      net/openconnect/files/openconnect.sh

+ 1
- 1
net/openconnect/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openconnect
PKG_VERSION:=7.06
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_USE_MIPS16:=0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz


+ 11
- 11
net/openconnect/files/openconnect.sh View File

@ -29,17 +29,17 @@ proto_openconnect_setup() {
ifname="vpn-$config"
logger -t openconnect "initializing..."
serv_addr=
for ip in $(resolveip -t 10 "$server"); do
( proto_add_host_dependency "$interface" "$ip" "$ifname" )
serv_addr=1
done
[ -n "$serv_addr" ] || {
logger -t openconnect "Could not resolve server address: '$server'"
sleep 60
proto_setup_failed "$config"
exit 1
}
# serv_addr=
# for ip in $(resolveip -t 10 "$server"); do
# ( proto_add_host_dependency "$interface" "$ip" "$ifname" )
# serv_addr=1
# done
# [ -n "$serv_addr" ] || {
# logger -t openconnect "Could not resolve server address: '$server'"
# sleep 5
# proto_setup_failed "$config"
# exit 1
# }
[ -n "$port" ] && port=":$port"


Loading…
Cancel
Save