mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
fix the build (port IP validation in options to network refactoring)
This commit is contained in:
@@ -87,7 +87,7 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in
|
||||
case ProxyIP:
|
||||
{
|
||||
// Use CAddress to parse and check IP
|
||||
CAddress addr(value.toString().toStdString() + ":1");
|
||||
CNetAddr addr(value.toString().toStdString());
|
||||
if (addr.IsValid())
|
||||
{
|
||||
addrProxy.SetIP(addr);
|
||||
|
||||
Reference in New Issue
Block a user