mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-02 20:16:59 +00:00
netifd: strip mask from IP address in DHCP client params
ipaddr option can be in CIDR notation, but udhcp wants just an IP address Signed-off-by: Andrey Erokhin <a.erokhin@inango-systems.com>
This commit is contained in:
parent
fdc8573587
commit
506bb436c6
@ -67,7 +67,7 @@ proto_dhcp_setup() {
|
|||||||
-p /var/run/udhcpc-$iface.pid \
|
-p /var/run/udhcpc-$iface.pid \
|
||||||
-s /lib/netifd/dhcp.script \
|
-s /lib/netifd/dhcp.script \
|
||||||
-f -t 0 -i "$iface" \
|
-f -t 0 -i "$iface" \
|
||||||
${ipaddr:+-r $ipaddr} \
|
${ipaddr:+-r ${ipaddr/\/*/}} \
|
||||||
${hostname:+-x "hostname:$hostname"} \
|
${hostname:+-x "hostname:$hostname"} \
|
||||||
${vendorid:+-V "$vendorid"} \
|
${vendorid:+-V "$vendorid"} \
|
||||||
$clientid $defaultreqopts $broadcast $norelease $dhcpopts
|
$clientid $defaultreqopts $broadcast $norelease $dhcpopts
|
||||||
|
Loading…
Reference in New Issue
Block a user