From fc683b3a1355e163a70035a4e2452d77f429993c Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Fri, 3 Jan 2025 18:54:16 +0100 Subject: [PATCH] fix: empty url for xmrig api in simple mode --- src/helper/xrig/xmrig.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helper/xrig/xmrig.rs b/src/helper/xrig/xmrig.rs index a942910..d63d1cc 100644 --- a/src/helper/xrig/xmrig.rs +++ b/src/helper/xrig/xmrig.rs @@ -228,6 +228,9 @@ impl Helper { let mut api_ip = String::with_capacity(15); let mut api_port = String::with_capacity(5); if state.simple { + api_ip = "127.0.0.1".to_string(); + api_port = "18088".to_string(); + *helper.lock().unwrap().img_xmrig.lock().unwrap() = ImgXmrig { threads: state.current_threads.to_string(), url: "127.0.0.1:3333 (Local P2Pool)".to_string(),