Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
1. use the `tun_device` from mixin config to check whether it is online
2. support mixin `tun_dns_hijacks`
3. set procd limits param correctly

fix #401
fix #402

Signed-off-by: Joseph Mory <[email protected]>
  • Loading branch information
morytyann committed Feb 2, 2025
1 parent ac398d9 commit 4ded7ed
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 132 deletions.
2 changes: 1 addition & 1 deletion luci-app-mihomo/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include $(TOPDIR)/rules.mk

PKG_VERSION:=1.17.4
PKG_VERSION:=1.17.5

LUCI_TITLE:=LuCI Support for mihomo
LUCI_DEPENDS:=+luci-base +mihomo
Expand Down
10 changes: 10 additions & 0 deletions luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ return view.extend({
o.retain = true;
o.depends('tun_gso', '1');

o = s.taboption('tun', form.Flag, 'tun_dns_hijack', '*' + ' ' + _('Overwrite DNS Hijack'));
o.rmempty = false;

o = s.taboption('tun', form.DynamicList, 'tun_dns_hijacks', '*' + ' ' + _('Edit DNS Hijacks'));
o.retain = true;
o.rmempty = false;
o.depends('tun_dns_hijack', '1');
o.value('tcp://any:53');
o.value('udp://any:53');

o = s.taboption('tun', form.Flag, 'tun_endpoint_independent_nat', '*' + ' ' + _('Endpoint Independent NAT'));
o.rmempty = false;

Expand Down
Loading

0 comments on commit 4ded7ed

Please sign in to comment.