Fix CActiveMasternodeManager::GetLocalAddress to prefer IPv4 if multiple local addresses are known (#3304)
Fix CActiveMasternodeManager::GetLocalAddress to prefer IPv4 if multiple local addresses are known (#3304)

* Fix CActiveMasternodeManager::GetLocalAddress to prefer IPv4 if multiple local addresses are known

* Make sure LookupHost succeeded

nmarley/dash,nmarley/dash,thelazier/dash,dashpay/dash,UdjinM6/dash,nmarley/dash,dashpay/dash,dashpay/dash,thelazier/dash,nmarley/dash,nmarley/dash,UdjinM6/dash,thelazier/dash,thelazier/dash,UdjinM6/dash,dashpay/dash,UdjinM6/dash,dashpay/dash,nmarley/dash,UdjinM6/dash,nmarley/dash,thelazier/dash