1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 19:31:53 +00:00

Only discover api server ip as candidate.

This commit is contained in:
winlin 2022-01-06 11:31:06 +08:00
parent 6919011e86
commit 51ca3fd80a

View file

@ -178,8 +178,7 @@ srs_error_t api_server_as_candidates(string api, set<string>& candidate_ips)
return err;
}
// Try to add the original hostname and ip as candidates.
candidate_ips.insert(hostname);
// Try to add the API server ip as candidates.
candidate_ips.insert(ip);
return err;