From 9ead45d67abc9b1183c8edc6d68847c5057bf602 Mon Sep 17 00:00:00 2001 From: Hao Xiang Date: Sun, 2 Mar 2025 21:51:19 +0800 Subject: [PATCH] fix plugin manager listen addr (#177) --- src-tauri/yaak-plugins/src/manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/yaak-plugins/src/manager.rs b/src-tauri/yaak-plugins/src/manager.rs index 371c4088..82255adf 100644 --- a/src-tauri/yaak-plugins/src/manager.rs +++ b/src-tauri/yaak-plugins/src/manager.rs @@ -79,8 +79,8 @@ impl PluginManager { }); let listen_addr = match option_env!("YAAK_PLUGIN_SERVER_PORT") { - Some(port) => format!("localhost:{port}"), - None => "localhost:0".to_string(), + Some(port) => format!("127.0.0.1:{port}"), + None => "127.0.0.1:0".to_string(), }; let listener = tauri::async_runtime::block_on(async move { TcpListener::bind(listen_addr).await.expect("Failed to bind TCP listener")