The SRV record also requires the class and weight fields... Currently you can 
overload the "port" keyword as:

        option port xxxx,class,weight

but this is counter-intuitive. Here we fix this.

Signed-off-by: Philip Prindeville <phil...@redfish-solutions.com>

Index: package/dnsmasq/files/dnsmasq.init
===================================================================
--- package/dnsmasq/files/dnsmasq.init  (revision 30968)
+++ package/dnsmasq/files/dnsmasq.init  (working copy)
@@ -364,6 +364,12 @@
        local service="$srv,$target"
        [ -n "$port" ] && service="$service,$port"
 
+       config_get class "$cfg" class
+       [ -n "$class" ] && service="$service,$class"
+
+       config_get weight "$cfg" weight
+       [ -n "$weight" ] && service="$service,$weight"
+
        append args "-W $service"
 }
 
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to