From ffe0fc77bd946fb1ee1f8d0b2b3b84ba32b41a73 Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Thu, 6 Oct 2022 22:34:52 -0600 Subject: [PATCH] isc-dhcp: support sending explicit default route Signed-off-by: Philip Prindeville --- net/isc-dhcp/files/dhcpd.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/isc-dhcp/files/dhcpd.init b/net/isc-dhcp/files/dhcpd.init index e72cb3797..2dcc88ee5 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;"