aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-01-07 06:19:46 -0800
committerPieter Wuille <[email protected]>2012-01-07 06:19:46 -0800
commit1684f98b27de9323d24ee4489af54dd84083956a (patch)
tree9c4313e815bd77e817f2dc5b796347d343458d0e /src/qt
parentMerge pull request #740 from TheBlueMatt/perf (diff)
parentNetwork stack refactor (diff)
downloaddiscoin-1684f98b27de9323d24ee4489af54dd84083956a.tar.xz
discoin-1684f98b27de9323d24ee4489af54dd84083956a.zip
Merge pull request #735 from sipa/netbase
Network stack refactor
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/optionsmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp
index a68c84c95..3237845c2 100644
--- a/src/qt/optionsmodel.cpp
+++ b/src/qt/optionsmodel.cpp
@@ -88,9 +88,9 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in
{
// Use CAddress to parse and check IP
CAddress addr(value.toString().toStdString() + ":1");
- if (addr.ip != INADDR_NONE)
+ if (addr.IsValid())
{
- addrProxy.ip = addr.ip;
+ addrProxy.SetIP(addr);
walletdb.WriteSetting("addrProxy", addrProxy);
}
else
@@ -104,7 +104,7 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in
int nPort = atoi(value.toString().toAscii().data());
if (nPort > 0 && nPort < std::numeric_limits<unsigned short>::max())
{
- addrProxy.port = htons(nPort);
+ addrProxy.SetPort(nPort);
walletdb.WriteSetting("addrProxy", addrProxy);
}
else