mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix luci MPTCP bandwidth
This commit is contained in:
		
							parent
							
								
									443374df8c
								
							
						
					
					
						commit
						6a0fc5e575
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -39,10 +39,7 @@ function multipath_bandwidth()
 | 
			
		|||
	local uci = luci.model.uci.cursor()
 | 
			
		||||
 | 
			
		||||
	uci:foreach("network", "interface", function(s)
 | 
			
		||||
		local dev = s["ifname"] or ""
 | 
			
		||||
		if dev == "" then
 | 
			
		||||
			dev = get_device(s["ifname"])
 | 
			
		||||
		end
 | 
			
		||||
		local dev = get_device(s["ifname"])
 | 
			
		||||
		if dev ~= "lo" and dev ~= "" then
 | 
			
		||||
			local multipath = s["multipath"] or "off"
 | 
			
		||||
			if multipath == "on" or multipath == "master" or multipath == "backup" or multipath == "handover" then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue