Changeset 31056


Ignore:
Timestamp:
2012-03-23T12:19:56+01:00 (5 years ago)
Author:
jow
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/dnsmasq/files/dnsmasq.init

    r29375 r31056  
    361361 
    362362        config_get port "$cfg" port 
    363  
    364         local service="$srv,$target" 
    365         [ -n "$port" ] && service="$service,$port" 
     363        [ -n "$port" ] || return 0 
     364 
     365        config_get class "$cfg" class 
     366        config_get weight "$cfg" weight 
     367 
     368        local service="$srv,$target,$port${class:+,$class${weight:+,$weight}}" 
    366369 
    367370        append args "-W $service" 
Note: See TracChangeset for help on using the changeset viewer.