mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
simplewallet ignoring testnet port in RPC mode
This commit is contained in:
parent
e00f0551e0
commit
0e777d0e65
@ -1218,7 +1218,7 @@ int main(int argc, char* argv[])
|
|||||||
if (daemon_host.empty())
|
if (daemon_host.empty())
|
||||||
daemon_host = "localhost";
|
daemon_host = "localhost";
|
||||||
if (!daemon_port)
|
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())
|
if (daemon_address.empty())
|
||||||
daemon_address = std::string("http://") + daemon_host + ":" + std::to_string(daemon_port);
|
daemon_address = std::string("http://") + daemon_host + ":" + std::to_string(daemon_port);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user