vpn-policy-routing: bugfix: netflix user file missing redirect
authorStan Grishin <[email protected]>
Fri, 26 Feb 2021 22:03:29 +0000 (22:03 +0000)
committerStan Grishin <[email protected]>
Fri, 26 Feb 2021 22:03:29 +0000 (22:03 +0000)
Signed-off-by: Stan Grishin <[email protected]>
net/vpn-policy-routing/Makefile
net/vpn-policy-routing/files/vpn-policy-routing.netflix.user

index a1e049ba98131c9dd7494f3a9c4075ef55858162..f605b15b41842ea8e7d1622591d2aae1ae41ffff 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=vpn-policy-routing
 PKG_VERSION:=0.3.2
-PKG_RELEASE:=14
+PKG_RELEASE:=16
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Stan Grishin <[email protected]>
 
index 5747cd67994b9cd89fb2cf54a4d3b8f9eb75a101..02335c4b355c393d23b173c5c7544a9ac0e48eb1 100644 (file)
@@ -25,7 +25,7 @@ if [ ! -s "$TARGET_FNAME" ]; then
 
        if [ "$DB_SOURCE" = "api.bgpview.io" ]; then
                TARGET_URL="https://api.bgpview.io/asn/${TARGET_ASN}/prefixes"
-               curl -s "$TARGET_URL" 2>/dev/null | jsonfilter -e '@.data.ipv4_prefixes[*].prefix'
+               curl -s "$TARGET_URL" 2>/dev/null | jsonfilter -e '@.data.ipv4_prefixes[*].prefix' > "$TARGET_FNAME"
        fi
 fi