net: Have LookupNumeric return a CService directly
This commit is contained in:
@@ -339,8 +339,7 @@ QValidator::State ProxyAddressValidator::validate(QString &input, int &pos) cons
|
||||
{
|
||||
Q_UNUSED(pos);
|
||||
// Validate the proxy
|
||||
CService serv;
|
||||
LookupNumeric(input.toStdString().c_str(), serv, 9050);
|
||||
CService serv(LookupNumeric(input.toStdString().c_str(), 9050));
|
||||
proxyType addrProxy = proxyType(serv, true);
|
||||
if (addrProxy.IsValid())
|
||||
return QValidator::Acceptable;
|
||||
|
||||
Reference in New Issue
Block a user