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);
164164bool IsLocal (const CService& addr);
165165bool GetLocal (CService &addr, const CNetAddr *paddrPeer = nullptr );
166166CService GetLocalAddress (const CNetAddr& addrPeer);
167+ CService MaybeFlipIPv6toCJDNS (const CService& service);
167168
168169
169170extern bool fDiscover ;
Original file line number Diff line number Diff line change @@ -947,7 +947,8 @@ static RPCHelpMan addpeeraddress()
947947 bool success{false };
948948
949949 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}};
951952 address.nTime = Now<NodeSeconds>();
952953 // The source address is set equal to the address. This is equivalent to the peer
953954 // announcing itself.
You can’t perform that action at this time.
0 commit comments