update: log

This commit is contained in:
tokumeikoi 2020-12-09 11:44:51 +08:00
parent 8f0e3ce27d
commit d1b2e315ce

View File

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