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

Possible to add server in wizard even if server config is empty

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-02-01 13:59:32 +01:00
parent a308a62814
commit 99f2265b8d

View file

@ -79,6 +79,9 @@
uci:foreach("openmptcprouter","server", function(s)
nbserver=nbserver+1
end)
if nbserver == 0 then
uci:set("openmptcprouter","vps","server")
end
uci:foreach("openmptcprouter","server", function(s)
servername = s[".name"]
%>