This repository was archived by the owner on Jul 12, 2023. It is now read-only.
Repository navigation
Fix STUN server usage when stunServerPort isn't set and the default value is to be used - #23
Merged
j1elo merged 1 commit intoMar 11, 2020
Conversation
The if-else blocks were wrongly disposed, so when the stunServerPort config wasnt set, but the IP was, a STUN server would not be setup in the NiceAgent interface Also some identation changes according to the git hook suggestions around the code I changed
|
Hi there, thanks for your Pull Request! A Kurento member needs to verify that this patch is reasonable to test. In case it is, they should write a comment with the phrase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the current behavior you want to change?
The
stunServerPortconfiguration inWebRtcEndpoint.conf.iniis supposed to be an optional one since there's a DEFAULT_STUN_PORT (3478) set up in WebRtcEndpointImpl.cpp.Expected behaviour: be able to configure only
stunServerAddressif the STUN server's port is the default one (3478).Current behaviour: if
stunServerPortisn't configured andstunServerAddressis, Kurento will not set a STUN server in the NiceAgent due to a botched pair of if-else blocks in WebRtcEndpointImpl.cpp.What is the new behavior provided by this change?
Configuring only
stunServerAddressin WebRtcEndpoint.conf.ini will make KMS configure a STUN server in the NiceAgent interface with the default STUN port (3478).How has this been tested?
Tested with the following variation of the
stunServerAddress/stunServerPortconfigs:stunServerPort, withstunServerAddress-> STUN server set in WebRtcEndpoint with$stunServerAddress:3478stunServerAddress andstunServerPort: STUN server set in WebRtcEndpoint with$stunServerAddress:stunServerPort`stunServerPort, nostunServerAddress-> No STUN server set in WebRtcEndpointstunServerPort, nostunServerAddress-> No STUN server set in WebRtcEndpointTypes of changes
Checklist