mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add check on VPS and IP timeout config in web interface and add loop detection
This commit is contained in:
parent
6702b125ca
commit
4c56f5402f
10 changed files with 111 additions and 12 deletions
|
@ -1001,6 +1001,18 @@ function settings_add()
|
|||
local disablegwping = luci.http.formvalue("disablegwping") or "0"
|
||||
ucic:set("openmptcprouter","settings","disablegwping",disablegwping)
|
||||
|
||||
-- VPS timeout
|
||||
local status_vps_timeout = luci.http.formvalue("status_vps_timeout") or "1"
|
||||
ucic:set("openmptcprouter","settings","status_vps_timeout",status_vps_timeout)
|
||||
|
||||
-- IP timeout
|
||||
local status_getip_timeout = luci.http.formvalue("status_getip_timeout") or "1"
|
||||
ucic:set("openmptcprouter","settings","status_getip_timeout",status_getip_timeout)
|
||||
|
||||
-- Enable/disable loop detection
|
||||
local disableloopdetection = luci.http.formvalue("disableloopdetection") or "0"
|
||||
ucic:set("openmptcprouter","settings","disableloopdetection",disableloopdetection)
|
||||
|
||||
-- Enable/disable renaming intf
|
||||
local disableintfrename = luci.http.formvalue("disableintfrename") or "0"
|
||||
ucic:set("openmptcprouter","settings","disableintfrename",disableintfrename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue