Ticket #9147: fix-6to4-lifetime.patch

File fix-6to4-lifetime.patch, 702 bytes (added by dpmcgee@…, 6 years ago)

Read values from 6to4 config section

  • package/6to4/files/6to4.sh

     
    203203 
    204204                                grep -qs "^ *$adv_ifname:" /proc/net/dev && { 
    205205                                        local adv_valid_lifetime adv_preferred_lifetime 
    206                                         config_get adv_valid_lifetime     "${adv_interface:-lan}" adv_valid_lifetime 
    207                                         config_get adv_preferred_lifetime "${adv_interface:-lan}" adv_preferred_lifetime 
     206                                        config_get adv_valid_lifetime     "$cfg" adv_valid_lifetime 
     207                                        config_get adv_preferred_lifetime "$cfg" adv_preferred_lifetime 
    208208 
    209209                                        local subnet6="$(printf "%s:%x::1/64" "$prefix6" $adv_subnet)" 
    210210