Skip to content

Commit

Permalink
check if host if unspecified
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Apr 4, 2021
1 parent 0f16697 commit 67b3200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libi2pd/RouterInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ namespace data
bool IsIntroducer () const { return caps & eSSUIntroducer; };
bool IsPeerTesting () const { return caps & eSSUTesting; };

bool IsV4 () const { return (caps & AddressCaps::eV4) || host.is_v4 (); };
bool IsV6 () const { return (caps & AddressCaps::eV6) || host.is_v6 (); };
bool IsV4 () const { return (caps & AddressCaps::eV4) || (host.is_v4 () && !host.is_unspecified ()); };
bool IsV6 () const { return (caps & AddressCaps::eV6) || (host.is_v6 () && !host.is_unspecified ()); };
};
typedef std::list<std::shared_ptr<Address> > Addresses;

Expand Down

0 comments on commit 67b3200

Please sign in to comment.