mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-20 01:16:23 +00:00
dnsmasq: add explicit "set:" for client-matching options
Bring the usage in line with the dnsmasq man page and the other options where set: is mandatory. No functional change. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
parent
0d1ebf0d6d
commit
ed7769aa40
@ -241,7 +241,7 @@ dhcp_subscrid_add() {
|
||||
config_get subscriberid "$cfg" subscriberid
|
||||
[ -n "$subscriberid" ] || return 0
|
||||
|
||||
xappend "--dhcp-subscrid=$networkid,$subscriberid"
|
||||
xappend "--dhcp-subscrid=set:$networkid,$subscriberid"
|
||||
|
||||
config_get_bool force "$cfg" force 0
|
||||
|
||||
@ -257,7 +257,7 @@ dhcp_remoteid_add() {
|
||||
config_get remoteid "$cfg" remoteid
|
||||
[ -n "$remoteid" ] || return 0
|
||||
|
||||
xappend "--dhcp-remoteid=$networkid,$remoteid"
|
||||
xappend "--dhcp-remoteid=set:$networkid,$remoteid"
|
||||
|
||||
config_get_bool force "$cfg" force 0
|
||||
|
||||
@ -274,7 +274,7 @@ dhcp_circuitid_add() {
|
||||
config_get circuitid "$cfg" circuitid
|
||||
[ -n "$circuitid" ] || return 0
|
||||
|
||||
xappend "--dhcp-circuitid=$networkid,$circuitid"
|
||||
xappend "--dhcp-circuitid=set:$networkid,$circuitid"
|
||||
|
||||
config_get_bool force "$cfg" force 0
|
||||
|
||||
@ -290,7 +290,7 @@ dhcp_userclass_add() {
|
||||
config_get userclass "$cfg" userclass
|
||||
[ -n "$userclass" ] || return 0
|
||||
|
||||
xappend "--dhcp-userclass=$networkid,$userclass"
|
||||
xappend "--dhcp-userclass=set:$networkid,$userclass"
|
||||
|
||||
config_get_bool force "$cfg" force 0
|
||||
|
||||
@ -307,7 +307,7 @@ dhcp_vendorclass_add() {
|
||||
config_get vendorclass "$cfg" vendorclass
|
||||
[ -n "$vendorclass" ] || return 0
|
||||
|
||||
xappend "--dhcp-vendorclass=$networkid,$vendorclass"
|
||||
xappend "--dhcp-vendorclass=set:$networkid,$vendorclass"
|
||||
|
||||
config_get_bool force "$cfg" force 0
|
||||
|
||||
@ -323,7 +323,7 @@ dhcp_match_add() {
|
||||
config_get match "$cfg" match
|
||||
[ -n "$match" ] || return 0
|
||||
|
||||
xappend "--dhcp-match=$networkid,$match"
|
||||
xappend "--dhcp-match=set:$networkid,$match"
|
||||
|
||||
config_get_bool force "$cfg" force 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user