Browse Source

openconnect: use proto_add_host_dependency

This ensures that a direct route to the connected host is added
by netifd.

Resolves #2548
lilik-openwrt-22.03
Nikos Mavrogiannopoulos 9 years ago
parent
commit
4083de9d74
2 changed files with 7 additions and 12 deletions
  1. +1
    -1
      net/openconnect/Makefile
  2. +6
    -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_NAME:=openconnect
PKG_VERSION:=7.06 PKG_VERSION:=7.06
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_USE_MIPS16:=0 PKG_USE_MIPS16:=0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz


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

@ -29,17 +29,12 @@ proto_openconnect_setup() {
ifname="vpn-$config" ifname="vpn-$config"
logger -t openconnect "initializing..." 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 5
# proto_setup_failed "$config"
# exit 1
# }
logger -t "openconnect" "adding host dependency for $server at $config"
for ip in $(resolveip -t 10 "$server"); do
logger -t "openconnect" "adding host dependency for $ip at $config"
proto_add_host_dependency "$config" "$ip"
done
[ -n "$port" ] && port=":$port" [ -n "$port" ] && port=":$port"


Loading…
Cancel
Save