set log level in global

This commit is contained in:
Tokumeikoi
2020-05-30 14:43:18 +08:00
parent afc9b462e5
commit 53e1e41902
3 changed files with 4 additions and 1 deletions

View File

@ -41,6 +41,7 @@ class ServerService
abort(500, '节点不存在');
}
$json = json_decode(self::SERVER_CONFIG);
$json->log->loglevel = config('v2board.server_log_level', 'none');
$json->inboundDetour[0]->port = (int)$localPort;
$json->inbound->port = (int)$server->server_port;
$json->inbound->streamSettings->network = $server->network;