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

for #319, support raw update global.listen

This commit is contained in:
winlin 2015-08-30 23:18:14 +08:00
parent f8d8c3ace4
commit 364460f2ab
5 changed files with 37 additions and 14 deletions

View file

@ -2175,6 +2175,16 @@ int SrsConfig::raw_to_json(SrsAmf0Object* obj)
return ret;
}
int SrsConfig::raw_set_listen(const vector<string>& eps)
{
int ret = ERROR_SUCCESS;
SrsConfDirective* listen = root->get("listen");
listen->args = eps;
return ret;
}
string SrsConfig::config()
{
return config_file;