Skip to content

Commit

Permalink
For ossrs#2508, Add platform information.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jul 10, 2023
1 parent 1fca41c commit 4da830d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trunk/src/app/srs_app_latest_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ void srs_build_features(stringstream& ss)
SRS_CHECK_FEATURE2(_srs_config->get_raw_api(), "raw", ss);
SRS_CHECK_FEATURE2(_srs_config->get_exporter_enabled(), "prom", ss);

string platform = srs_getenv("SRS_PLATFORM");
SRS_CHECK_FEATURE3(!string(platform).empty(), "plat", platform, ss);
string region = srs_getenv("SRS_REGION");
SRS_CHECK_FEATURE3(!string(region).empty(), "region", region, ss);
string source = srs_getenv("SRS_SOURCE");
Expand Down

0 comments on commit 4da830d

Please sign in to comment.