mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add option to choose country
This commit is contained in:
parent
301eb4c9fc
commit
be059a42ae
3 changed files with 42 additions and 2 deletions
|
@ -505,6 +505,11 @@ function wizard_add()
|
|||
ucic:set("openmptcprouter","settings","mptcpovervpn",mptcpovervpn_vpn)
|
||||
ucic:save("openmptcprouter")
|
||||
|
||||
-- Get Country
|
||||
local country = luci.http.formvalue("country") or "world"
|
||||
ucic:set("openmptcprouter","settings","country",country)
|
||||
ucic:save("openmptcprouter")
|
||||
|
||||
-- Get Proxy set by default
|
||||
local default_proxy = luci.http.formvalue("default_proxy") or "shadowsocks"
|
||||
if default_proxy == "shadowsocks" and serversnb > 0 and serversnb > disablednb then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue