GetLocalAddress

Return the best local address to use when talking to the given peer.

Synopsis

Declared in <net.h>

CService
GetLocalAddress(CNode const& peer);

Return Value

the best local address to advertise to that peer.

Parameters

NameDescription
peerthe peer we would advertise an address to.