1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

API: For #2508, query feature docker and packager.

This commit is contained in:
winlin 2021-08-07 21:35:00 +08:00
parent 983d521987
commit 69faf06f0f
4 changed files with 13 additions and 2 deletions

View file

@ -22,6 +22,15 @@
#include <sstream>
using namespace std;
// Whether we are in docker, defined in main module.
extern bool _srs_in_docker;
void srs_build_features(stringstream& ss)
{
ss << "&docker=" << _srs_in_docker
<< "&packager=" << SRS_PACKAGER;
}
SrsLatestVersion::SrsLatestVersion()
{
trd_ = new SrsSTCoroutine("signal", this);
@ -94,6 +103,7 @@ srs_error_t SrsLatestVersion::query_latest_version()
<< "&id=" << server_id_ << "&role=srs"
<< "&eip=" << srs_get_public_internet_address()
<< "&ts=" << srsu2ms(srs_get_system_time());
srs_build_features(ss);
string url = ss.str();
SrsHttpUri uri;