Changeset 6430

Show
Ignore:
Timestamp:
11/15/10 13:42:24 (3 years ago)
Author:
jow
Message:

modules/admin-full: hide 6to4 options for other protocols

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua

    r6429 r6430  
    251251    ttl:depends("proto", "6in4") 
    252252    ttl:depends("proto", "6to4") 
    253  
     253end 
     254 
     255if has_6to4 then 
    254256    advi = s:taboption("general", Value, "adv_interface", translate("Advertise IPv6 on network")) 
    255257    advi.widget = "radio" 
     
    259261    advi.nocreate = true 
    260262    advi.nobridges = true 
     263    advi:depends("proto", "6to4") 
    261264 
    262265    advn = s:taboption("general", Value, "adv_subnet", translate("Advertised network ID"), translate("Allowed range is 1 to FFFF")) 
    263266    advn.default = "1" 
     267    advn:depends("proto", "6to4") 
    264268 
    265269    function advn.write(self, section, value)