1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-02 18:56:42 +03:00

dnsmasq: add keywords for SRV RR class/weight

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.

Redux: make the port required.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31056 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-03-23 11:19:56 +00:00
parent 61a78f8450
commit a3026e2fae

View File

@ -360,9 +360,12 @@ dhcp_srv_add() {
[ -n "$target" ] || return 0
config_get port "$cfg" port
[ -n "$port" ] || return 0
local service="$srv,$target"
[ -n "$port" ] && service="$service,$port"
config_get class "$cfg" class
config_get weight "$cfg" weight
local service="$srv,$target,$port${class:+,$class${weight:+,$weight}}"
append args "-W $service"
}