luci-app-ssocks: fix path to binary

This commit is contained in:
CN_SZTL 2020-09-12 20:38:58 +08:00
parent 074461962d
commit 821ecda6a1
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -25,7 +25,7 @@ start()
echo "${username}:${password}" > /etc/config/ssocks-authorization
auth_arg="--auth /etc/config/ssocks-authorization"
fi
/usr/bin/ssocks --port "${listen_port}" --bind "${bind_address}" ${auth_arg} >/dev/null 2>&1 &
/usr/bin/ssocksd --port "${listen_port}" --bind "${bind_address}" ${auth_arg} >/dev/null 2>&1 &
iptables -I INPUT -p tcp --dport "${listen_port}" -j ACCEPT
cat <<-EOF > "/var/etc/ssocks.include"
iptables -I INPUT -p tcp --dport "${listen_port}" -j ACCEPT