mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Possible to add server in wizard even if server config is empty
This commit is contained in:
parent
a308a62814
commit
99f2265b8d
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@
|
||||||
uci:foreach("openmptcprouter","server", function(s)
|
uci:foreach("openmptcprouter","server", function(s)
|
||||||
nbserver=nbserver+1
|
nbserver=nbserver+1
|
||||||
end)
|
end)
|
||||||
|
if nbserver == 0 then
|
||||||
|
uci:set("openmptcprouter","vps","server")
|
||||||
|
end
|
||||||
uci:foreach("openmptcprouter","server", function(s)
|
uci:foreach("openmptcprouter","server", function(s)
|
||||||
servername = s[".name"]
|
servername = s[".name"]
|
||||||
%>
|
%>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue