mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTMP: If port is explicity set to 0, use default 1935 (#1754). v4.0.181
This commit is contained in:
parent
bb7cd6af3a
commit
061d544195
4 changed files with 12 additions and 3 deletions
|
|
@ -4570,6 +4570,14 @@ VOID TEST(KernelUtilityTest, CoverTimeUtilityAll)
|
|||
srs_parse_hostport("domain.com", host, port);
|
||||
EXPECT_STREQ("domain.com", host.c_str());
|
||||
}
|
||||
|
||||
if (true) {
|
||||
string host;
|
||||
int port = 1935;
|
||||
srs_parse_hostport("domain.com:0", host, port);
|
||||
EXPECT_EQ(1935, port);
|
||||
EXPECT_STREQ("domain.com", host.c_str());
|
||||
}
|
||||
|
||||
if (true) {
|
||||
string ep = srs_any_address_for_listener();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue