This repository was archived by the owner on Jul 12, 2023. It is now read-only.
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
externalIpv4 and externalIpv6 affect all candidates instead of just host #622
Closed
Description
Prerequisites
These are MANDATORY, otherwise the issue will be automatically closed.
- I agree to fill this issue template.
- I have read the Troubleshooting Guide and Support Instructions.
Issue description
The addition of externalIpv4
and externalIpv6
to replace externalAddress
lost the detail of affecting only the local candidates of type host
. Using any of the newer parameters will change the address of ALL candidates, while using externalAddress
would apply the given address only to host ones. So I guess this is a regression in behavior.
See screenshot, where externalIpv4
was set to 1.2.3.4
:
Context
A Kurento server with externalIpv4
or externalIpv6
setting active, and also using a STUN or TURN server to retrieve srflx
and relay
candidates.
(Optional) Possible solution
Add
&& kms_ice_candidate_get_candidate_type (candidate) == KMS_ICE_CANDIDATE_TYPE_HOST)
to the conditionals, or move the conditionals inside a parent if ()
with mentioned code.