This commit is contained in:
zimoyin
2026-04-03 11:32:19 +08:00
parent 4c841b9dbf
commit 1a84e92384
30 changed files with 403 additions and 1030 deletions
+4
View File
@@ -82,6 +82,9 @@ class Config
public int $httpPort{
get => $this->httpPort;
}
public bool $enableRequestTimeLog{
get => $this->enableRequestTimeLog;
}
/**
* 人员检测回调函数
@@ -112,6 +115,7 @@ class Config
$this->httpPort = self::getIntEnv('HTTP_PORT', 8080);
$this->zlm = new ZLMConfig();
$this->personDetectionCallback = null;
$this->enableRequestTimeLog = self::getBoolEnv('ENABLE_REQUEST_TIME_LOG', false);
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && $this->tcpServerProcessNum > 1) {
$this->tcpServerProcessNum = 1;
echo "Warning: TCP_SERVER_PROCESS_NUM set to 1 on Windows.\n";