mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Display any interface with multipath on in wizard
This commit is contained in:
		
							parent
							
								
									d5b2c79d6b
								
							
						
					
					
						commit
						606a74124e
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -129,10 +129,10 @@
 | 
			
		|||
	    <legend><%:Interfaces settings%></legend>
 | 
			
		||||
	    <div class="cbi-section-descr"><%:You must disable DHCP on your modems and set IP in different networks.%></div>
 | 
			
		||||
<% 
 | 
			
		||||
    for _, iface in ipairs(ifaces) do
 | 
			
		||||
	--if not (iface == "lo" or iface:match("^tun.*")) then
 | 
			
		||||
    for _, iface in ipairs(net:get_networks()) do
 | 
			
		||||
	local ifname = iface:name()
 | 
			
		||||
	if (ifname:match("^wan.*")) then
 | 
			
		||||
	local multipath = uci:get("network",ifname,"multipath")
 | 
			
		||||
	if multipath ~= "off" then
 | 
			
		||||
%>
 | 
			
		||||
	    <div class="cbi-section-remove right">
 | 
			
		||||
		<input type="submit" name="delete.<%=ifname%>" value="<%:Delete%>" class="cbi-button" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue