mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
ringaccount: support for IPv6
This patch tags PJSIP custom ICE transports as "TLS IPv6" if the local address support this family. Change-Id: I0ca01b5f373b4e873ed7be24b58497992a99fc9d Tuleap: #891
This commit is contained in:
@ -171,7 +171,7 @@ SipsIceTransport::SipsIceTransport(pjsip_endpoint* endpt,
|
||||
local_ = ice->getLocalAddress(comp_id);
|
||||
remote_ = ice->getRemoteAddress(comp_id);
|
||||
pj_sockaddr_cp(&base.key.rem_addr, remote_.pjPtr());
|
||||
base.key.type = PJSIP_TRANSPORT_TLS;
|
||||
base.key.type = local_.isIpv6() ? PJSIP_TRANSPORT_TLS6 : PJSIP_TRANSPORT_TLS;
|
||||
base.type_name = (char*)pjsip_transport_get_type_name((pjsip_transport_type_e)base.key.type);
|
||||
base.flag = pjsip_transport_get_flag_from_type((pjsip_transport_type_e)base.key.type);
|
||||
base.info = (char*) pj_pool_alloc(pool_.get(), TRANSPORT_INFO_LENGTH);
|
||||
|
Reference in New Issue
Block a user