Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | convertSeed6(const std::vector<SeedSpec6> &vSeedsIn) { | ||||
return vSeedsOut; | return vSeedsOut; | ||||
} | } | ||||
// Get best local address for a particular peer as a CAddress. Otherwise, return | // Get best local address for a particular peer as a CAddress. Otherwise, return | ||||
// the unroutable 0.0.0.0 but filled in with the normal parameters, since the IP | // the unroutable 0.0.0.0 but filled in with the normal parameters, since the IP | ||||
// may be changed to a useful one by discovery. | // may be changed to a useful one by discovery. | ||||
CAddress GetLocalAddress(const CNetAddr *paddrPeer, | CAddress GetLocalAddress(const CNetAddr *paddrPeer, | ||||
ServiceFlags nLocalServices) { | ServiceFlags nLocalServices) { | ||||
CAddress ret(CService(CNetAddr(), GetListenPort()), NODE_NONE); | CAddress ret(CService(CNetAddr(), GetListenPort()), nLocalServices); | ||||
CService addr; | CService addr; | ||||
if (GetLocal(addr, paddrPeer)) { | if (GetLocal(addr, paddrPeer)) { | ||||
ret = CAddress(addr, nLocalServices); | ret = CAddress(addr, nLocalServices); | ||||
} | } | ||||
ret.nTime = GetAdjustedTime(); | ret.nTime = GetAdjustedTime(); | ||||
return ret; | return ret; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,932 Lines • Show Last 20 Lines |