Prepare some default values for the mp-dialog
properties - name - location - online are optional for the upcoming DNS based server discovery
This commit is contained in:
parent
2d66413085
commit
68f1dee97f
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,10 @@
|
|||
var i=0;
|
||||
foreach (var s; serverlist.getChildren("server")) {
|
||||
|
||||
# prepare some default values
|
||||
s.initNode("online", 1, "BOOL" );
|
||||
s.initNode("location", "unknown", "STRING" );
|
||||
s.initNode("name", s.getNode("hostname").getValue(), "STRING" );
|
||||
if (!s.getNode("online").getBoolValue()) {
|
||||
continue; # skip offline servers
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue