Don't use reversed port for choise random port. (by whothefuckami)

This commit is contained in:
weko 2023-02-14 14:58:11 +03:00
parent 03111ad0df
commit 9e0c5d67c7
3 changed files with 24 additions and 1 deletions

View file

@ -224,6 +224,7 @@ namespace util
bool IsLocalAddress (const boost::asio::ip::address& addr);
bool IsInReservedRange (const boost::asio::ip::address& host);
bool IsYggdrasilAddress (const boost::asio::ip::address& addr);
bool IsPortInReservedRange (const uint16_t port) noexcept;
}
}
}