more precise compatibility check

This commit is contained in:
orignal 2021-03-12 20:51:12 -05:00
parent 6012585067
commit 1b8da90cbb
2 changed files with 12 additions and 5 deletions

View file

@ -130,8 +130,8 @@ namespace data
bool IsCompatible (const boost::asio::ip::address& other) const
{
return (host.is_v4 () && other.is_v4 ()) ||
(host.is_v6 () && other.is_v6 ());
return (IsV4 () && other.is_v4 ()) ||
(IsV6 () && other.is_v6 ());
}
bool operator==(const Address& other) const