init
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user