[fix] conf
This commit is contained in:
parent
9893e60bf3
commit
8ecd0bd63e
1 changed files with 43 additions and 41 deletions
|
@ -221,7 +221,7 @@ namespace _espe.conf
|
|||
conf_raw : any
|
||||
) : void
|
||||
{
|
||||
const version : int = conf_raw["version"];
|
||||
const version : int = (conf_raw["version"] ?? 4);
|
||||
_data = {
|
||||
"general": (
|
||||
((node_general) => ({
|
||||
|
@ -229,7 +229,8 @@ namespace _espe.conf
|
|||
"verification_secret": (node_general["verification_secret"] ?? null),
|
||||
})) (conf_raw["general"] ?? {})
|
||||
),
|
||||
"log": (() => {
|
||||
"log": (
|
||||
(() => {
|
||||
switch (version) {
|
||||
case 1: {
|
||||
return [
|
||||
|
@ -250,7 +251,7 @@ namespace _espe.conf
|
|||
??
|
||||
[
|
||||
{
|
||||
"kind": "console",
|
||||
"kind": "stdout",
|
||||
"data": {
|
||||
}
|
||||
},
|
||||
|
@ -273,7 +274,8 @@ namespace _espe.conf
|
|||
break;
|
||||
}
|
||||
}
|
||||
}) (),
|
||||
}) ()
|
||||
),
|
||||
"server": (
|
||||
((node_server) => ({
|
||||
"host": (() => {
|
||||
|
|
Loading…
Add table
Reference in a new issue