Skip to content

Commit

Permalink
fix(init): fix proxy list condition
Browse files Browse the repository at this point in the history
  • Loading branch information
1715173329 authored Jul 12, 2023
1 parent 65e8718 commit d545826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htdocs/luci-static/resources/view/homeproxy/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ return view.extend({
}

o = s.taboption('routing', form.Value, 'routing_port', _('Routing ports'),
_('Specify target port(s) that get proxied. Multiple ports must be separated by commas.'));
_('Specify target ports to be proxied. Multiple ports must be separated by commas.'));
o.value('all', _('All ports'));
o.value('common', _('Common ports only (bypass P2P traffic)'));
o.default = 'common';
Expand Down
4 changes: 2 additions & 2 deletions root/etc/init.d/homeproxy
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ start_service() {
;;
esac

if [ "$routing_mode" != "custom" ] && [ -s "$DNSMASQ_DIR/proxy_list.conf" ]; then
if [ "$routing_mode" != "custom" ] && [ -s "$HP_DIR/resources/proxy_list.txt" ]; then
[ "$ipv6_support" -eq "0" ] || local wan_nftset_v6=",6#inet#fw4#homeproxy_wan_proxy_addr_v6"
sed -r -e '/^\s*$/d' -e "s/(.*)/server=\/\1\/127.0.0.1#$dns_port\nnftset=\/\1\\/4#inet#fw4#homeproxy_wan_proxy_addr_v4$wan_nftset_v6/g" \
"$HP_DIR/resources/proxy_list.txt" > "$DNSMASQ_DIR/proxy_list.conf"
Expand Down Expand Up @@ -351,5 +351,5 @@ reload_service() {

service_triggers() {
procd_add_reload_trigger "$CONF"
procd_add_interface_trigger "interface.*.up" wan /etc/init.d/$CONF restart
procd_add_interface_trigger "interface.*.up" wan /etc/init.d/$CONF reload
}

0 comments on commit d545826

Please sign in to comment.