From: Philip Prindeville Date: Fri, 21 Apr 2023 18:02:28 +0000 (-0600) Subject: strongswan: local_gateway unused in swanctl.init X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5f3840c765711577d9b39ff3908a2fa1c8522dd9;p=feed%2Fpackages.git strongswan: local_gateway unused in swanctl.init Signed-off-by: Philip Prindeville --- diff --git a/net/strongswan/Makefile b/net/strongswan/Makefile index 7f0e0c9609..7b5275ba7a 100644 --- a/net/strongswan/Makefile +++ b/net/strongswan/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=strongswan PKG_VERSION:=5.9.10 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/ diff --git a/net/strongswan/files/swanctl.init b/net/strongswan/files/swanctl.init index f32ca21c4a..e05c7228d9 100644 --- a/net/strongswan/files/swanctl.init +++ b/net/strongswan/files/swanctl.init @@ -418,7 +418,6 @@ config_connection() { local enabled local gateway - local local_gateway local local_sourceip local local_ip local remote_gateway @@ -478,10 +477,6 @@ config_connection() { [ "$gateway" = "any" ] && remote_gateway="%any" || remote_gateway="$gateway" - local ipdest - [ "$remote_gateway" = "%any" ] && ipdest="1.1.1.1" || ipdest="$remote_gateway" - local_gateway=`ip -o route get $ipdest | awk '/ src / { gsub(/^.* src /,""); gsub(/ .*$/, ""); print $0}'` - if [ -n "$local_key" ]; then [ "$(dirname "$local_key")" != "." ] && \ fatal "local_key $local_key can't be pathname"