Skip to content

Commit 682fdf9

Browse files
committed
update
1 parent a384e6b commit 682fdf9

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

devices/common/diy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ git_clone_path separate-dhcp-dns https://github.com/Alphix/luci modules/luci-mod
3939
echo "$(date +"%s")" >version.date
4040
sed -i '/$(curdir)\/compile:/c\$(curdir)/compile: package/opkg/host/compile' package/Makefile
4141
sed -i "s/DEFAULT_PACKAGES:=/DEFAULT_PACKAGES:=luci-app-advancedplus luci-app-firewall luci-app-package-manager luci-app-upnp luci-app-syscontrol luci-proto-wireguard \
42-
luci-app-wizard luci-base luci-compat luci-lib-ipkg luci-lib-fs luci-app-log-viewer \
42+
luci-app-wizard luci-base luci-compat luci-lib-ipkg luci-lib-fs \
4343
coremark wget-ssl curl autocore htop nano zram-swap kmod-lib-zstd kmod-tcp-bbr bash openssh-sftp-server block-mount resolveip ds-lite swconfig luci-app-fan luci-app-filemanager /" include/target.mk
4444

4545
sed -i "s/procd-ujail//" include/target.mk
Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
--- a/package/feeds/luci/luci-mod-network/htdocs/luci-static/resources/view/network/dns.js
22
+++ b/package/feeds/luci/luci-mod-network/htdocs/luci-static/resources/view/network/dns.js
3-
@@ -442,6 +442,9 @@ return view.extend({
3+
@@ -253,6 +253,11 @@ return view.extend({
4+
o.optional = true;
5+
o.placeholder = '/example.org/ipset,ipset6';
6+
7+
+ o = s.taboption('general', form.Flag, 'dns_redirect',
8+
+ _('DNS Redirect'),
9+
+ _('Force redirect all local DNS queries to DNSMasq, a.k.a. DNS Hijacking.'));
10+
+ o.optional = true;
11+
+
12+
o = s.taboption('general', form.Flag, 'allservers',
13+
_('All servers'),
14+
_('Query all available upstream resolvers.') + ' ' + _('First answer wins.'));
15+
@@ -442,6 +447,9 @@ return view.extend({
416
so.rmempty = false;
517
so.datatype = 'ipaddr("nomask")';
618

@@ -10,17 +22,3 @@
1022
var ipaddrs = {};
1123

1224
Object.keys(hosts).forEach(function(mac) {
13-
14-
--- a/package/feeds/luci/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
15-
+++ b/package/feeds/luci/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
16-
@@ -308,6 +308,10 @@ return view.extend({
17-
_('Authoritative'),
18-
_('This is the only DHCP server in the local network.'));
19-
20-
+ s.taboption('general', form.Flag, 'dns_redirect',
21-
+ _('DNS Redirect'),
22-
+ _('Force redirect all local DNS queries to DNSMasq, a.k.a. DNS Hijacking.'));
23-
+
24-
s.taboption('general', form.Value, 'domain',
25-
_('Local domain'),
26-
_('Local domain suffix appended to DHCP names and hosts file entries.'));

0 commit comments

Comments
 (0)