hijack-domain.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. --- a/feeds/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
  2. +++ b/feeds/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
  3. @@ -163,6 +163,26 @@ return view.extend({
  4. s.tab('tftp', _('TFTP Settings'));
  5. s.tab('advanced', _('Advanced Settings'));
  6. s.tab('leases', _('Static Leases'));
  7. + s.tab('custom_domain', _('Custom Redirect Domain'));
  8. +
  9. + o = s.taboption('custom_domain', form.SectionValue, 'domain', form.GridSection, 'domain', null,
  10. + _('Define a custom domain name and the corresponding PTR record'));
  11. +
  12. + ss = o.subsection;
  13. +
  14. + ss.addremove = true;
  15. + ss.anonymous = true;
  16. +
  17. + so = ss.option(form.Value, 'name', _('Domain Name'));
  18. + so.datatype = 'hostname';
  19. + so.rmempty = true;
  20. +
  21. + so = ss.option(form.Value, 'ip', _('<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address'));
  22. + so.datatype = 'or(ip4addr,"ignore")';
  23. + so.rmempty = true;
  24. +
  25. + so = ss.option(form.Value, 'comments', _('Comments'));
  26. + so.rmempty = true;
  27. s.taboption('general', form.Flag, 'domainneeded',
  28. _('Domain required'),