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:
parent
f8d8c3ace4
commit
364460f2ab
5 changed files with 37 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue