turn: re-direct for DTLS must be handled using a new connection

This commit is contained in:
Richard Aas 2014-12-05 12:08:35 +00:00
parent 8277f5ff0f
commit 6c99fc36f0

View file

@ -119,7 +119,8 @@ static void allocate_resp_handler(int err, uint16_t scode, const char *reason,
break;
case 300:
if (turnc->proto == IPPROTO_TCP)
if (turnc->proto == IPPROTO_TCP ||
turnc->proto == STUN_TRANSP_DTLS)
break;
alt = stun_msg_attr(msg, STUN_ATTR_ALT_SERVER);