1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix V2Ray UDP disable

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-09-15 09:07:47 +02:00
parent 218fb8a6e5
commit d08810bd89

View file

@ -1158,8 +1158,10 @@ function settings_add()
ucic:set("openmptcprouter","settings","shadowsocksudp",shadowsocksudp)
-- Enable/disable v2ray udp
local v2rayudp = luci.http.formvalue("v2rayudp") or "1"
local v2rayudp = luci.http.formvalue("v2rayudp") or "0"
ucic:set("v2ray","main_transparent_proxy","redirect_udp",v2rayudp)
ucic:save("v2ray")
ucic:commit("v2ray")
-- Enable/disable nDPI
local ndpi = luci.http.formvalue("ndpi") or "1"