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:
parent
92f2bcd878
commit
2f09ec4353
4 changed files with 47 additions and 25 deletions
|
@ -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 "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue