Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge dashpay#6544: fix: port 0 is not a bad one
8c30f73 test: check port 0 in netbase_tests.cpp (UdjinM6) c5eb184 fix: port 0 is not a bad one (UdjinM6) Pull request description: ## Issue being fixed or feature implemented ``` An ephemeral port is allocated to a socket in the following circumstances: * the port number in a socket address is specified as 0 when calling bind(2); ``` [source](https://man7.org/linux/man-pages/man7/ip.7.html#:~:text=An%20ephemeral%20port%20is%20allocated%20to%20a%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20socket%20in%20the%20following%20circumstances%3A%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%E2%80%A2%20%20the%20port%20number%20in%20a%20socket%20address%20is%20specified%20as%200%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20when%20calling%20bind(2)%3B) dashpay#6535 follow-up ## What was done? ## How Has This Been Tested? ## Breaking Changes ## Checklist: - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: kwvg: utACK 8c30f73 PastaPastaPasta: utACK 8c30f73; nit, could've been one commit Tree-SHA512: f9a2767c1d9534e592e26a5332deab0d5c764a56ae783aece2f3b5bf0f2c3a258eac4fc2c16bf37fd5c1aae639bda14e43558849ad8229521b0830b9ec042aef
- Loading branch information