mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
isc-dhcp: support sending explicit default route
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
committed by
Rosen Penev
parent
1d6c7506ab
commit
ffe0fc77bd
@@ -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;"
|
||||
|
||||
Reference in New Issue
Block a user