Commit b999bab3 authored by Dafydd Harries's avatar Dafydd Harries
Browse files

add some debug code to _handle_stun

darcs-hash:20070205173159-c9803-6e4304eebe173626d4e4be411c1cb05dfe25a4c0.gz
parent 1352895a
...@@ -461,6 +461,17 @@ _handle_stun ( ...@@ -461,6 +461,17 @@ _handle_stun (
RESPOND: RESPOND:
#ifdef DEBUG
{
gchar *ip;
ip = nice_address_to_string (&remote->addr);
g_debug ("got valid connectivity check for candidate %d (%s:%d)",
remote->id, ip, remote->addr.port);
g_free (ip);
}
#endif
/* update candidate/peer affinity */ /* update candidate/peer affinity */
{ {
...@@ -495,6 +506,18 @@ RESPOND: ...@@ -495,6 +506,18 @@ RESPOND:
return; return;
ERROR: ERROR:
#ifdef DEBUG
{
gchar *ip;
ip = nice_address_to_string (&remote->addr);
g_debug ("got invalid connectivity check for candidate %d (%s:%d)",
remote->id, ip, remote->addr.port);
g_free (ip);
}
#endif
{ {
StunMessage *response; StunMessage *response;
guint len; guint len;
......
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