From 3bf1ac9fa12b7fabd33bfa8df4c58875e2541403 Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Fri, 17 Mar 2023 14:57:02 +0300 Subject: [PATCH] remove unnecessary sed --- templates/openwrt-hirkn.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/openwrt-hirkn.j2 b/templates/openwrt-hirkn.j2 index 9da66cb..e7b956f 100644 --- a/templates/openwrt-hirkn.j2 +++ b/templates/openwrt-hirkn.j2 @@ -86,10 +86,10 @@ download domains.lst $DOMAINS {% if list_domains %} {% if ansible_distribution_major_version == "22" and dnsmasqfull_version.stdout >= "2.87" %} -sed "s/.*/\/&/" $dir/domains.lst | sed -e "s/.*/nftset=&\/4#inet#fw4#vpn_domains/" > /tmp/dnsmasq.d/domains +sed "s/.*/nftset=\/&\/4#inet#fw4#vpn_domains/" $dir/domains.lst > /tmp/dnsmasq.d/domains {% elif ansible_distribution_major_version < "22" and dnsmasqfull_version.stdout %} -sed "s/.*/\/&/" $dir/domains.lst | sed -e "s/.*/ipset=&\/vpn_domains/" > /tmp/dnsmasq.d/domains +sed "s/.*/ipset=\/&\/vpn_domains/" $dir/domains.lst > /tmp/dnsmasq.d/domains {% endif %} echo "Dnsmasq restart"