File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ bool SeenLocal(const CService& addr);
164
164
bool IsLocal (const CService& addr);
165
165
bool GetLocal (CService &addr, const CNetAddr *paddrPeer = nullptr );
166
166
CService GetLocalAddress (const CNetAddr& addrPeer);
167
+ CService MaybeFlipIPv6toCJDNS (const CService& service);
167
168
168
169
169
170
extern bool fDiscover ;
Original file line number Diff line number Diff line change @@ -947,7 +947,8 @@ static RPCHelpMan addpeeraddress()
947
947
bool success{false };
948
948
949
949
if (LookupHost (addr_string, net_addr, false )) {
950
- CAddress address{{net_addr, port}, ServiceFlags{NODE_NETWORK | NODE_WITNESS}};
950
+ CService service{net_addr, port};
951
+ CAddress address{MaybeFlipIPv6toCJDNS (service), ServiceFlags{NODE_NETWORK | NODE_WITNESS}};
951
952
address.nTime = Now<NodeSeconds>();
952
953
// The source address is set equal to the address. This is equivalent to the peer
953
954
// announcing itself.
You can’t perform that action at this time.
0 commit comments