Browse Source

fix the build (port IP validation in options to network refactoring)

0.8
Wladimir J. van der Laan 13 years ago
parent
commit
be4d08b261
  1. 2
      src/qt/optionsmodel.cpp

2
src/qt/optionsmodel.cpp

@ -87,7 +87,7 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, 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);

Loading…
Cancel
Save