Skip to content

Commit

Permalink
net: take CJDNS into account in CNetAddr::GetReachabilityFrom()
Browse files Browse the repository at this point in the history
This way `GetLocal()` will pick our CJDNS address for a CJDNS peer.
  • Loading branch information
vasild committed Nov 3, 2021
1 parent 9b43b3b commit c2d751a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/netaddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,11 @@ int CNetAddr::GetReachabilityFrom(const CNetAddr *paddrPartner) const
case NET_I2P: return REACH_PRIVATE;
default: return REACH_DEFAULT;
}
case NET_CJDNS:
switch (ourNet) {
case NET_CJDNS: return REACH_PRIVATE;
default: return REACH_DEFAULT;
}
case NET_TEREDO:
switch(ourNet) {
default: return REACH_DEFAULT;
Expand Down

0 comments on commit c2d751a

Please sign in to comment.