dnsmasq: use local option for local domain parameter
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Thu, 1 Jul 2021 18:50:22 +0000 (19:50 +0100)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Mon, 5 Jul 2021 15:49:06 +0000 (16:49 +0100)
'--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@darbyshire-bryant.me.uk>
package/network/services/dnsmasq/files/dnsmasq.init

index c4c262ad698d9b443ff6ebd40a272c20968de5e6..f86b4b04f3678bc2c68d5871ead6c7e0fc90384a 100644 (file)
@@ -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