mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: Support transform tlpkdrop to tlpktdrop. 5.0.98 (#3279)
This commit is contained in:
parent
fdbfe59784
commit
5cadfff2e5
6 changed files with 42 additions and 8 deletions
|
@ -3865,3 +3865,27 @@ VOID TEST(ConfigMainTest, LogLevelV2)
|
|||
EXPECT_EQ(SrsLogLevelWarn, srs_get_log_level(conf.get_log_level_v2()));
|
||||
}
|
||||
}
|
||||
|
||||
VOID TEST(ConfigMainTest, SrtServerTlpktDrop)
|
||||
{
|
||||
srs_error_t err;
|
||||
|
||||
if (true) {
|
||||
MockSrsConfig conf;
|
||||
HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF));
|
||||
EXPECT_TRUE(conf.get_srto_tlpktdrop());
|
||||
}
|
||||
|
||||
if (true) {
|
||||
MockSrsConfig conf;
|
||||
HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF "srt_server{tlpktdrop off;}"));
|
||||
EXPECT_FALSE(conf.get_srto_tlpktdrop());
|
||||
}
|
||||
|
||||
if (true) {
|
||||
MockSrsConfig conf;
|
||||
HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF "srt_server{tlpkdrop off;}"));
|
||||
EXPECT_FALSE(conf.get_srto_tlpktdrop());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue