mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Add whois timeout setting in openmptcprouter interface
This commit is contained in:
		
							parent
							
								
									16972ab574
								
							
						
					
					
						commit
						6185ad638a
					
				
					 3 changed files with 20 additions and 1 deletions
				
			
		|  | @ -1463,6 +1463,10 @@ function settings_add() | |||
| 	local status_getip_timeout = luci.http.formvalue("status_getip_timeout") or "1" | ||||
| 	ucic:set("openmptcprouter","settings","status_getip_timeout",status_getip_timeout) | ||||
| 
 | ||||
| 	-- Whois timeout | ||||
| 	local status_whois_timeout = luci.http.formvalue("status_whois_timeout") or "2" | ||||
| 	ucic:set("openmptcprouter","settings","status_whois_timeout",status_whois_timeout) | ||||
| 
 | ||||
| 	-- Enable/disable loop detection | ||||
| 	local disableloopdetection = luci.http.formvalue("disableloopdetection") or "0" | ||||
| 	ucic:set("openmptcprouter","settings","disableloopdetection",disableloopdetection) | ||||
|  |  | |||
|  | @ -286,7 +286,16 @@ | |||
| 		    </div> | ||||
| 		</div> | ||||
| 	    </div> | ||||
| 	     | ||||
| 	    <div class="cbi-value"> | ||||
| 	        <label class="cbi-value-title"><%:Whois WAN IPs retrieve timeout%></label> | ||||
| 	        <div class="cbi-value-field"> | ||||
| 		    <input type="text" name="status_whois_timeout" class="cbi-input-text" value="<%=luci.model.uci.cursor():get("openmptcprouter","settings","status_whois_timeout")%>"> | ||||
| 		    <br /> | ||||
| 		    <div class="cbi-value-description"> | ||||
| 			<%:Timeout for retrieving Whois WANs IP on status pages%> | ||||
| 		    </div> | ||||
| 		</div> | ||||
| 	    </div> | ||||
| 	    <div class="cbi-value"> | ||||
| 		<label class="cbi-value-title"><%:Disable interfaces auto rename%></label> | ||||
| 		<div class="cbi-value-field"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue