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

For #464, refine result of origin cluster api

This commit is contained in:
winlin 2018-02-16 14:13:14 +08:00
parent 92f2bcd878
commit 2f09ec4353
4 changed files with 47 additions and 25 deletions

View file

@ -260,6 +260,12 @@ string srs_get_public_internet_address()
return ip;
}
// Finally, use first whatever kind of address.
if (!ips.empty()) {
_public_internet_address = ips.at(0);
return _public_internet_address;
}
return "";
}