aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-10-01 11:13:46 +0200
committerRiccardo Spagni <ric@spagni.net>2014-10-01 11:13:46 +0200
commit0e777d0e6587b41b139f8c8105c3855994584e95 (patch)
treeaa4499ccac62bcc59705256a6efde268608a7b0e /src
parentMerge pull request #163 (diff)
downloadmonero-0e777d0e6587b41b139f8c8105c3855994584e95.tar.xz
simplewallet ignoring testnet port in RPC mode
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 37974088a..ef93a17b6 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -1218,7 +1218,7 @@ int main(int argc, char* argv[])
if (daemon_host.empty())
daemon_host = "localhost";
if (!daemon_port)
- daemon_port = config::RPC_DEFAULT_PORT;
+ daemon_port = testnet ? config::testnet::RPC_DEFAULT_PORT : config::RPC_DEFAULT_PORT;
if (daemon_address.empty())
daemon_address = std::string("http://") + daemon_host + ":" + std::to_string(daemon_port);