diff options
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h index 980aa47d66..a8ff080662 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -247,4 +247,13 @@ void InterruptSocks5(bool interrupt); */ bool Socks5(const std::string& strDest, uint16_t port, const ProxyCredentials* auth, const Sock& socket); +/** + * Determine if a port is "bad" from the perspective of attempting to connect + * to a node on that port. + * @see doc/p2p-bad-ports.md + * @param[in] port Port to check. + * @returns whether the port is bad + */ +bool IsBadPort(uint16_t port); + #endif // BITCOIN_NETBASE_H |