mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:28:35 +02:00
fix plugin manager listen addr (#177)
This commit is contained in:
@@ -79,8 +79,8 @@ impl PluginManager {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let listen_addr = match option_env!("YAAK_PLUGIN_SERVER_PORT") {
|
let listen_addr = match option_env!("YAAK_PLUGIN_SERVER_PORT") {
|
||||||
Some(port) => format!("localhost:{port}"),
|
Some(port) => format!("127.0.0.1:{port}"),
|
||||||
None => "localhost:0".to_string(),
|
None => "127.0.0.1:0".to_string(),
|
||||||
};
|
};
|
||||||
let listener = tauri::async_runtime::block_on(async move {
|
let listener = tauri::async_runtime::block_on(async move {
|
||||||
TcpListener::bind(listen_addr).await.expect("Failed to bind TCP listener")
|
TcpListener::bind(listen_addr).await.expect("Failed to bind TCP listener")
|
||||||
|
|||||||
Reference in New Issue
Block a user