Skip to content

Commit 06d30ce

Browse files
author
Ermal
committed
Handle the case on some special configs with a gateway of all 1's otherwise strange thing happens.
1 parent 214bd06 commit 06d30ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbin/dhclient-script

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ add_new_routes() {
189189
if [ -f "/tmp/${interface}_defaultgw" -o $EXISTSGW -eq 0 ]; then
190190
$ROUTE delete default
191191
for router in $new_routers; do
192-
if [ "$new_ip_address" = "$router" ]; then
192+
if [ "$new_ip_address" = "$router" -o "$router" = "255.255.255.255" ]; then
193193
$ROUTE add default -iface $interface
194194
echo $ROUTE add default -iface $interface | $LOGGER
195195
echo $router > /tmp/${interface}_router

0 commit comments

Comments
 (0)