diff options
author | Ermal <eri@pfsense.org> | 2011-03-07 21:42:00 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-07 21:42:39 +0000 |
commit | 06d30ce7db3a859687efdadd0263f0dfab0b32a3 (patch) | |
tree | 0e6668861a1ec8c02cb36b9072969fe3fcd4f639 | |
parent | 214bd062189d3b1ffc16bfea645f3c4f155f4ae7 (diff) | |
download | pfsense-06d30ce7db3a859687efdadd0263f0dfab0b32a3.zip pfsense-06d30ce7db3a859687efdadd0263f0dfab0b32a3.tar.gz |
Handle the case on some special configs with a gateway of all 1's otherwise strange thing happens.
-rwxr-xr-x | sbin/dhclient-script | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script index aaa8144..e7fee7a 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -189,7 +189,7 @@ add_new_routes() { if [ -f "/tmp/${interface}_defaultgw" -o $EXISTSGW -eq 0 ]; then $ROUTE delete default for router in $new_routers; do - if [ "$new_ip_address" = "$router" ]; then + if [ "$new_ip_address" = "$router" -o "$router" = "255.255.255.255" ]; then $ROUTE add default -iface $interface echo $ROUTE add default -iface $interface | $LOGGER echo $router > /tmp/${interface}_router |