Skip to content

API to get DNS server's bound address to allow specifying zero as port number#3999

Merged
bennylp merged 1 commit intomasterfrom
dns-server-any-port
Jun 24, 2024
Merged

API to get DNS server's bound address to allow specifying zero as port number#3999
bennylp merged 1 commit intomasterfrom
dns-server-any-port

Conversation

@bennylp
Copy link
Copy Markdown
Member

@bennylp bennylp commented Jun 24, 2024

Specifying zero as port number is syntactically and semantically allowed when creating DNS server, but there was no way to get the bound address. This PR adds such API.

The ability to use zero port is required by pjnath unit tests (currently under development in separate branch) in order to spawn multiple DNS servers simultaneously.

@bennylp bennylp merged commit 8c8675d into master Jun 24, 2024
@bennylp bennylp deleted the dns-server-any-port branch June 24, 2024 05:48
BarryYin pushed a commit to BarryYin/pjproject that referenced this pull request Feb 3, 2026
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.

2 participants