Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only validate public address when IP address is supplied on TCP/TLS #3599

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

trengginas
Copy link
Member

When public address is supplied when starting TCP/TLS transport(e.g: pjsip_tcp_transport_start2()), the address will be validated.
The validation is not applied to UDP transport.
If the address supplied is unresolvable FQDN address, the transport will fail to start.
This PR will only validate the publish address if it is an IP address.

@trengginas trengginas added this to the release-2.14 milestone Jun 15, 2023
@trengginas trengginas self-assigned this Jun 15, 2023
@sauwming
Copy link
Member

Also update the doc of cfg.addr_name and a_name to mention that it can be hostname.

Make sure to test that it works well. Also, I'm curious, how does Contact and Via rewrite work with FQDN published address?

@trengginas trengginas merged commit c5d7e43 into master Jul 5, 2023
@trengginas trengginas deleted the disable-fqdn-pub-address-tcp-tls branch July 5, 2023 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants