Commit e06e3f77 authored by Youness Alaoui's avatar Youness Alaoui

Fix default stun port define in nice agent

parent 32359633
...@@ -72,6 +72,8 @@ ...@@ -72,6 +72,8 @@
* will it work tcp relaying?? * will it work tcp relaying??
*/ */
#define MAX_BUFFER_SIZE 65536 #define MAX_BUFFER_SIZE 65536
#define DEFAULT_STUN_PORT 3478
G_DEFINE_TYPE (NiceAgent, nice_agent, G_TYPE_OBJECT); G_DEFINE_TYPE (NiceAgent, nice_agent, G_TYPE_OBJECT);
...@@ -385,10 +387,8 @@ nice_agent_init (NiceAgent *agent) ...@@ -385,10 +387,8 @@ nice_agent_init (NiceAgent *agent)
agent->next_stream_id = 1; agent->next_stream_id = 1;
/* set defaults; not construct params, so set here */ /* set defaults; not construct params, so set here */
g_assert (agent->stun_server_port != IPPORT_STUN); agent->stun_server_port = DEFAULT_STUN_PORT;
g_assert (agent->turn_server_port != IPPORT_STUN); agent->turn_server_port = DEFAULT_STUN_PORT;
agent->stun_server_port = IPPORT_STUN;
agent->turn_server_port = IPPORT_STUN;
agent->controlling_mode = TRUE; agent->controlling_mode = TRUE;
agent->max_conn_checks = NICE_AGENT_MAX_CONNECTIVITY_CHECKS_DEFAULT; agent->max_conn_checks = NICE_AGENT_MAX_CONNECTIVITY_CHECKS_DEFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment