1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2021-03-29 21:28:44 +02:00
parent 301eb4c9fc
commit be059a42ae
3 changed files with 42 additions and 2 deletions

View file

@ -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