Skip to content

Commit

Permalink
Enable ICE consent freshness with libnice
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Oct 1, 2024
1 parent c1c63ae commit 0fb543f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/impl/icetransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ IceTransport::IceTransport(const Configuration &config, candidate_callback candi
// the characteristics of the associated data.
g_object_set(G_OBJECT(mNiceAgent.get()), "stun-pacing-timer", 25, nullptr);

// Enable RFC 7675 ICE consent freshness support (requires libnice 0.1.19)
g_object_set(G_OBJECT(mNiceAgent.get()), "keepalive-conncheck", TRUE, nullptr);
g_object_set(G_OBJECT(mNiceAgent.get()), "consent-freshness", TRUE, nullptr);

g_object_set(G_OBJECT(mNiceAgent.get()), "upnp", FALSE, nullptr);
g_object_set(G_OBJECT(mNiceAgent.get()), "upnp-timeout", 200, nullptr);

Expand Down

0 comments on commit 0fb543f

Please sign in to comment.