mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
nhttpd: fix streaming with non-standard port
This commit is contained in:
@@ -2559,6 +2559,10 @@ void CControlAPI::build_live_url(CyhookHandler *hh)
|
|||||||
url = "http://"+hh->ParamList["host"];
|
url = "http://"+hh->ParamList["host"];
|
||||||
else
|
else
|
||||||
url = "http://"+hh->HeaderList["Host"];
|
url = "http://"+hh->HeaderList["Host"];
|
||||||
|
/* strip off optional custom port */
|
||||||
|
if (url.rfind(":") != 4)
|
||||||
|
url = url.substr(0, url.rfind(":"));
|
||||||
|
|
||||||
//url += (mode == CZapitClient::MODE_TV) ? ":31339/0," : ":31338/";
|
//url += (mode == CZapitClient::MODE_TV) ? ":31339/0," : ":31338/";
|
||||||
url += ":31339/0,";
|
url += ":31339/0,";
|
||||||
url += xpids;
|
url += xpids;
|
||||||
|
Reference in New Issue
Block a user