Skip to content

Commit

Permalink
SRTLA Compat. Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
b3ck committed Aug 18, 2021
1 parent 87714b3 commit c8ba192
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slscore/SLSSrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ int CSLSSrt::libsrt_setup(int port)
*/

int enable = 0;
int lossmaxttlvalue = 40;

srt_setsockopt(fd, SOL_SOCKET, SRTO_IPV6ONLY, &enable, sizeof(enable));
srt_setsockopt(fd, SOL_SOCKET, SRTO_LOSSMAXTTL, &lossmaxttlvalue, sizeof(lossmaxttlvalue));

/* Set the socket's send or receive buffer sizes, if specified.
If unspecified or setting fails, system default is used. */
Expand Down

0 comments on commit c8ba192

Please sign in to comment.