瀏覽代碼

Enable ICE consent freshness with libnice

Paul-Louis Ageneau 1 年之前
父節點
當前提交
0fb543f282
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/impl/icetransport.cpp

+ 4 - 0
src/impl/icetransport.cpp

@@ -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);