Fix server config update_url

This commit is contained in:
Andrew 2023-03-10 18:25:26 -05:00
parent 89307cecd5
commit 4729588e31
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ server_patch_schema = {
"auto_start_delay": {"type": "integer"},
"crash_detection": {"type": "boolean"},
"stop_command": {"type": "string"},
"executable_update_url": {"type": "string", "minLength": 1},
"executable_update_url": {"type": "string"},
"server_ip": {"type": "string", "minLength": 1},
"server_port": {"type": "integer"},
"shutdown_timeout": {"type": "integer"},

View File

@ -580,7 +580,7 @@
}
function replacer(key, value) {
if (key != "ignored_exits") {
if (typeof value == "boolean") {
if (typeof value == "boolean" || key === "executable_update_url") {
return value
} else {
return (isNaN(value) ? value : +value);
@ -628,8 +628,8 @@
} else {
bootbox.alert({
title: responseData.status,
message: responseData.error
title: responseData.error,
message: responseData.error_data
});
}
});