Enable Parameters on TSSRT listener

This commit is contained in:
Matthew James 2022-07-22 00:44:28 +08:00 committed by Thulinma
parent 1c6a483e49
commit 0430a644df
4 changed files with 9 additions and 7 deletions

View file

@ -434,7 +434,8 @@ int main(int argc, char *argv[]){
sigaction(SIGUSR1, &new_action, NULL);
}
if (conf.getInteger("port") && conf.getString("interface").size()){
server_socket = Socket::SRTServer(conf.getInteger("port"), conf.getString("interface"), false, "output");
std::map<std::string, std::string> arguments;
server_socket = Socket::SRTServer(conf.getInteger("port"), conf.getString("interface"), arguments, false, "output");
}
if (!server_socket.connected()){
DEVEL_MSG("Failure to open socket");