[openwrt/openwrt] dnsmasq: use local option for local domain parameter

LEDE Commits lede-commits at lists.infradead.org
Mon Jul 5 08:49:35 PDT 2021


ldir pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e4cfefa9fc3d22da5705b554785ba9c533c373d0

commit e4cfefa9fc3d22da5705b554785ba9c533c373d0
Author: Kevin Darbyshire-Bryant <ldir at darbyshire-bryant.me.uk>
AuthorDate: Thu Jul 1 19:50:22 2021 +0100

    dnsmasq: use local option for local domain parameter
    
    '--local' is a synonym for '--server' so let's use '--local' in the
    resultant config file for uci's 'local' instead of uci's local
    parameter being turned into '--server'.  Slightly less confusion all
    round.
    
    Signed-off-by: Kevin Darbyshire-Bryant <ldir at darbyshire-bryant.me.uk>
---
 package/network/services/dnsmasq/files/dnsmasq.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index c4c262ad69..f86b4b04f3 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -915,7 +915,7 @@ dnsmasq_start()
 	append_parm "$cfg" "minport" "--min-port"
 	append_parm "$cfg" "maxport" "--max-port"
 	append_parm "$cfg" "domain" "--domain"
-	append_parm "$cfg" "local" "--server"
+	append_parm "$cfg" "local" "--local"
 	config_list_foreach "$cfg" "listen_address" append_listenaddress
 	config_list_foreach "$cfg" "server" append_server
 	config_list_foreach "$cfg" "rev_server" append_rev_server



More information about the lede-commits mailing list