mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
net: move MaybeFlipIPv6toCJDNS() from net to netbase
It need not be in the `net` module and we need to call it from `LookupSubNet()`, thus move it to `netbase`.
This commit is contained in:
parent
6e308651c4
commit
53afa68026
4 changed files with 18 additions and 18 deletions
|
|
@ -774,3 +774,12 @@ bool IsBadPort(uint16_t port)
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
CService MaybeFlipIPv6toCJDNS(const CService& service)
|
||||
{
|
||||
CService ret{service};
|
||||
if (ret.IsIPv6() && ret.HasCJDNSPrefix() && g_reachable_nets.Contains(NET_CJDNS)) {
|
||||
ret.m_net = NET_CJDNS;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue