mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
net: remove CNetAddr::ToString() and use ToStringAddr() instead
Both methods do the same thing, so simplify to having just one. Further, `CService` inherits `CNetAddr` and `CService::ToString()` overrides `CNetAddr::ToString()` but the latter is not virtual which may be confusing. Avoid such a confusion by not having non-virtual methods with the same names in inheritance.
This commit is contained in:
@@ -181,7 +181,7 @@ static bool ProcessUpnp()
|
||||
if (externalIPAddress[0]) {
|
||||
CNetAddr resolved;
|
||||
if (LookupHost(externalIPAddress, resolved, false)) {
|
||||
LogPrintf("UPnP: ExternalIPAddress = %s\n", resolved.ToString());
|
||||
LogPrintf("UPnP: ExternalIPAddress = %s\n", resolved.ToStringAddr());
|
||||
AddLocal(resolved, LOCAL_MAPPED);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user