Commit 65a50ca9 authored by Pekka Pessi's avatar Pekka Pessi

Added quick hack for using stun.

darcs-hash:20060328113347-88462-9f3eeb98006b990dc77e793d0a846de39a02d364.gz
parent a91aec55
......@@ -1186,7 +1186,9 @@ tport_vtable_t const *tport_vtables[TPORT_NUMBER_OF_TYPES + 1] =
&tport_udp_client_vtable,
&tport_udp_vtable,
&tport_threadpool_vtable,
#if HAVE_SOFIA_STUN
&tport_stun_vtable,
#endif
};
/**Get a vtable for given protocol */
......@@ -1263,6 +1265,11 @@ int tport_tbind(tport_t *self,
mr = self->tp_master; assert(mr);
#if HAVE_SOFIA_STUN
if (public == 0 && stun_is_requested(ta_tags(ta)))
public = tport_type_stun;
#endif
if (http_connect && public == 0)
public = tport_type_connect;
......
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