mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix display when device have a .
This commit is contained in:
		
							parent
							
								
									9476921bd5
								
							
						
					
					
						commit
						d4df42934a
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -558,8 +558,13 @@ | |||
| 			<% | ||||
| 			    iffind=0 | ||||
| 			    uciifname=uci:get("network",ifname,"ifname") | ||||
| 			    realifname=splitstring(uciifname,'.')[1] or "" | ||||
| 			    vlan=splitstring(uciifname,'.')[2] or "" | ||||
| 			    if uciifname:match("/") then | ||||
| 				realifname=uciifname | ||||
| 				vlan="" | ||||
| 			    else | ||||
| 				realifname=splitstring(uciifname,'.')[1] or "" | ||||
| 				vlan=splitstring(uciifname,'.')[2] or "" | ||||
| 			    end | ||||
| 			    for _, ifacea in ipairs(ifaces) do | ||||
| 				if not (ifacea == "lo" or ifacea == "6in4-omr6in4" or ifacea == "mlvpn0" or ifacea:match("^ifb.*") or ifacea:match("^sit.*") or ifacea:match("^gre.*") or ifacea:match("^ip6.*") or ifacea:match("^teql.*") or ifacea:match("^erspan.*") or ifacea:match("^tun.*")) and device_notvirtual(ifacea) then | ||||
| 			%> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue