diff --git a/wallet/src/command.rs b/wallet/src/command.rs index b717aa7ee..1f324759c 100644 --- a/wallet/src/command.rs +++ b/wallet/src/command.rs @@ -26,6 +26,7 @@ use uuid::Uuid; use crate::api::TLSConfig; use crate::core::core; +use crate::core::global; use crate::keychain; use crate::error::{Error, ErrorKind}; @@ -145,7 +146,7 @@ pub fn owner_api( ) -> Result<(), Error> { let res = controller::owner_listener( wallet, - "127.0.0.1:13420", + &format!("127.0.0.1:{}", (if global::is_floonet() { "13420" } else { "3420" })), g_args.node_api_secret.clone(), g_args.tls_conf.clone(), config.owner_api_include_foreign.clone(),