| 423 | } |
| 424 | |
| 425 | QValidator::State ProxyAddressValidator::validate(QString &input, int &pos) const |
| 426 | { |
| 427 | Q_UNUSED(pos); |
| 428 | // Validate the proxy |
| 429 | CService serv(LookupNumeric(input.toStdString(), DEFAULT_GUI_PROXY_PORT)); |
| 430 | Proxy addrProxy = Proxy(serv, true); |
| 431 | if (addrProxy.IsValid()) |
| 432 | return QValidator::Acceptable; |
| 433 | |
| 434 | return QValidator::Invalid; |
| 435 | } |
no test coverage detected