1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Fix if only one IP set for server

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-03-18 15:46:58 +01:00
parent 0c83cf9f6d
commit b3395d12e8

View file

@ -583,10 +583,15 @@ function wizard_add()
if default_proxy == "shadowsocks" and serversnb > disablednb then
ucic:set("shadowsocks-libev","sss" .. nbip,"disabled","0")
end
nbip = nbip + 1
if disableipv6 == "1" and nbip > 0 then
ucic:set("shadowsocks-libev","sss" .. nbip,"disabled","1")
break
end
nbip = nbip + 1
end
if nbip == 1 then
--ucic:set("shadowsocks-libev","sss" .. nbip,"server",server_ip)
ucic:set("shadowsocks-libev","sss" .. nbip,"disabled","1")
end
end
k = k + 1
@ -621,6 +626,10 @@ function wizard_add()
break
end
end
if nbip == 1 then
-- ucic:set("shadowsocks-libev","sss" .. nbip,"server",server_ip)
ucic:set("shadowsocks-libev","sss" .. nbip,"disabled","1")
end
end
end
end