From: Philip Prindeville Date: Fri, 7 Oct 2022 04:34:52 +0000 (-0600) Subject: isc-dhcp: support sending explicit default route X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=ffe0fc77bd946fb1ee1f8d0b2b3b84ba32b41a73;p=feed%2Fpackages.git isc-dhcp: support sending explicit default route Signed-off-by: Philip Prindeville --- diff --git a/net/isc-dhcp/files/dhcpd.init b/net/isc-dhcp/files/dhcpd.init index e72cb37977..2dcc88ee55 100755 --- a/net/isc-dhcp/files/dhcpd.init +++ b/net/isc-dhcp/files/dhcpd.init @@ -157,7 +157,7 @@ append_routes() { octets=$((($prefix + 7) / 8)) compacted="$(echo "$network" | cut -d. -f1-$octets)" - string="${string:+, }$(explode "$prefix.$compacted.$router")" + string="${string:+, }$(explode "$prefix${compacted:+.$compacted}.$router")" done echo " option classless-ipv4-route $string;"