Ticket #119: default.diff

File default.diff, 576 bytes (added by roy, 23 months ago)

Allow the route "default" to work properly

  • init.d/net.lo.in

    diff --git a/init.d/net.lo.in b/init.d/net.lo.in
    index 4dadee9..583c895 100644
    a b ${routes}" 
    581581                        -net" "*|-host" "*);; 
    582582                        *" "netmask" "*)                   cmd="-net ${cmd}";; 
    583583                        *.*.*.*/32*)                       cmd="-host ${cmd}";; 
    584                         *.*.*.*/*|0.0.0.0" "*|default" "*) cmd="-net ${cmd}";; 
     584                        *.*.*.*/*|0.0.0.0|0.0.0.0" "*)     cmd="-net ${cmd}";; 
     585                        default|default" "*)               cmd="-net ${cmd}";; 
    585586                        *)                                 cmd="-host ${cmd}";; 
    586587                esac 
    587588                if ${hidefirstroute}; then