Skip to content

Commit

Permalink
Drop support for old tntnet versions: add support to extract host fro…
Browse files Browse the repository at this point in the history
…m request url.

Tntnet versions which did not allow to get the host from the request url are now unsupported.
  • Loading branch information
Dieter Hametner committed Feb 10, 2015
1 parent d7f6802 commit 531e0e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions pages/vlc.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,8 @@ using namespace vdrlive;
}
</%cpp>
<%cpp>
#if TNT_HAS_GETHOST
string server = request.getHost();
server = server.substr(0, server.rfind(':'));
#else
string server = request.getServerIp();
#endif
string videourl;
if (Channel != 0) {
int streamdevPort = LiveSetup().GetStreamdevPort();
Expand Down
3 changes: 0 additions & 3 deletions tntfeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
// Query params without boolean parameter
#define TNT_QUERYPARAMS_NO_BOOL (TNTVERSION >= 22000)

// One can request the host part of the request url
#define TNT_HAS_GETHOST (TNTVERSION >= 16060)

// new version of TNTNET allow the request watchdog to be silenced.
#define TNT_WATCHDOG_SILENCE (TNTVERSION >= 16900)

Expand Down

0 comments on commit 531e0e3

Please sign in to comment.