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

Fix #1501, use request ip for origin cluster. 3.0.66

This commit is contained in:
winlin 2019-11-30 18:50:24 +08:00
parent 488f16f60c
commit e5285ecabf
7 changed files with 40 additions and 23 deletions

View file

@ -231,9 +231,9 @@ string srs_any_address_for_listener()
}
if (ipv6_active && !ipv4_active) {
return "::";
return SRS_CONSTS_LOOPBACK6;
}
return "0.0.0.0";
return SRS_CONSTS_LOOPBACK;
}
void srs_parse_endpoint(string hostport, string& ip, int& port)