dnsmasq: 'ipset' config sections
authorAleksandr Mezin <mezin.alexander@gmail.com>
Fri, 23 Oct 2020 05:02:37 +0000 (11:02 +0600)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 11 Nov 2020 19:47:34 +0000 (20:47 +0100)
commitacb336235cc640980ea549655b0702daf9e628f8
tree21096d476425dd036760bbe92fc4a0f0f1a3c1e5
parentde768829a5c6cd1c7889ba25c50db07827cfc96c
dnsmasq: 'ipset' config sections

Allow configuring ipsets with dedicated config sections:

    config ipset
        list name 'ss_rules_dst_forward'
        list name 'ss_rules6_dst_forward'
        list domain 't.me'
        list domain 'telegram.org'

instead of current, rather inconvenient syntax:

    config dnsmasq
        ...
        list ipset '/t.me/telegram.org/ss_rules_dst_forward,ss_rules6_dst_forward'

Current syntax will still continue to work though.

With this change, a LuCI GUI for DNS ipsets should be easy to implement.

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init