git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b2a967c
)
fix the build (port IP validation in options to network refactoring)
author
Wladimir J. van der Laan
<laanwj@gmail.com>
Tue, 17 Jan 2012 08:27:03 +0000 (09:27 +0100)
committer
Wladimir J. van der Laan
<laanwj@gmail.com>
Tue, 17 Jan 2012 08:27:03 +0000 (09:27 +0100)
src/qt/optionsmodel.cpp
patch
|
blob
|
history
diff --git
a/src/qt/optionsmodel.cpp
b/src/qt/optionsmodel.cpp
index
3237845
..
241db34
100644
(file)
--- a/
src/qt/optionsmodel.cpp
+++ b/
src/qt/optionsmodel.cpp
@@
-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);