mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Support config in_docker to fix the detect fail. (#2824). v4.0.216
This commit is contained in:
parent
fd313133b1
commit
7808bd7ca8
6 changed files with 29 additions and 2 deletions
|
@ -385,6 +385,14 @@ srs_error_t run_directly_or_daemon()
|
|||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
// Try to load the config if docker detect failed.
|
||||
if (!_srs_in_docker) {
|
||||
_srs_in_docker = _srs_config->get_in_docker();
|
||||
if (_srs_in_docker) {
|
||||
srs_trace("enable in_docker by config");
|
||||
}
|
||||
}
|
||||
|
||||
// Load daemon from config, disable it for docker.
|
||||
// @see https://github.com/ossrs/srs/issues/1594
|
||||
bool run_as_daemon = _srs_config->get_daemon();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue