Skip to content

Commit

Permalink
fix: port 0 is not a bad one
Browse files Browse the repository at this point in the history
6535 follow-up
  • Loading branch information
UdjinM6 committed Jan 29, 2025
1 parent 78f242b commit c5eb184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ bool IsBadPort(uint16_t port)
{
/* Don't forget to update doc/p2p-bad-ports.md if you change this list. */

if (port <= PRIVILEGED_PORTS_THRESHOLD) return true;
if (port > 0 && port <= PRIVILEGED_PORTS_THRESHOLD) return true;
switch (port) {
case 1719: // h323gatestat
case 1720: // h323hostcall
Expand Down

0 comments on commit c5eb184

Please sign in to comment.