Skip to content

Commit

Permalink
Merge pull request #1267 from paullouisageneau/libnice-consent-freshness
Browse files Browse the repository at this point in the history
Enable ICE consent freshness with libnice
  • Loading branch information
paullouisageneau authored Oct 1, 2024
2 parents c1c63ae + 0fb543f commit b068c8f
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 b068c8f

Please sign in to comment.