mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine config heartbeat, add new stats. 0.9.175
This commit is contained in:
parent
02f7c85710
commit
e76036f40b
9 changed files with 102 additions and 42 deletions
|
@ -61,7 +61,7 @@ void SrsHttpHeartbeat::heartbeat()
|
|||
|
||||
vector<string>& ips = srs_get_local_ipv4_ips();
|
||||
if (!ips.empty()) {
|
||||
ip = ips[_srs_config->get_heartbeat_device_index() % (int)ips.size()];
|
||||
ip = ips[_srs_config->get_stats_network_device_index() % (int)ips.size()];
|
||||
}
|
||||
|
||||
std::stringstream ss;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue