Skip to content

Commit

Permalink
[apps] Show warning if UDP target is without host
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Dec 14, 2020
1 parent f964415 commit fd82e83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/transmitmedia.cpp
Expand Up @@ -1012,6 +1012,9 @@ class UdpTarget: public Target, public UdpCommon
public:
UdpTarget(string host, int port, const map<string,string>& attr )
{
if (host.empty())
cerr << "\nWARN Host for UDP target is not provided. Will send to localhost:" << port << ".\n";

Setup(host, port, attr);
if (adapter != "")
{
Expand Down

0 comments on commit fd82e83

Please sign in to comment.