From: Sergey Ponomarev Date: Sat, 15 Jul 2023 14:16:38 +0000 (+0300) Subject: tor-hs: tor-hs.init handle_hs_ports_conf: remove unused name var X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=910041d39fda5ed802c0150ef0e430ed8b716fc3;p=openwrt-packages.git tor-hs: tor-hs.init handle_hs_ports_conf: remove unused name var Signed-off-by: Sergey Ponomarev --- diff --git a/net/tor-hs/files/tor-hs.init b/net/tor-hs/files/tor-hs.init index aab531b1c..7486bb7fa 100755 --- a/net/tor-hs/files/tor-hs.init +++ b/net/tor-hs/files/tor-hs.init @@ -42,7 +42,6 @@ handle_hs_ports_conf() { local public_port local_port local value="$1" local ipv4="$2" - local name="$3" public_port=$(echo "$value"|awk -F';' '{print $1}') local_port=$(echo "$value"|awk -F';' '{print $2}') @@ -67,7 +66,7 @@ parse_hs_conf() { chmod 700 "$HS_DIR_PATH/$name/" echo "HiddenServiceDir $HS_DIR_PATH/$name" >>$TORRC_FILE - config_list_foreach "$config" PublicLocalPort handle_hs_ports_conf "$ipv4" "$name" + config_list_foreach "$config" PublicLocalPort handle_hs_ports_conf "$ipv4" fi }