mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-08-06 12:39:51 +00:00
docs: correct misleading multi_thread flag help text
The flag defaults to true and only affects launcher-based deployments (GUI/mobile/web/Windows service); the easytier-core CLI is intentionally single-threaded. Fix the help text and document the intent at the CLI entry.
This commit is contained in:
@@ -114,11 +114,11 @@ core_clap:
|
||||
en: "encryption algorithm to use, supported: '', 'xor', 'chacha20', 'aes-gcm', 'aes-gcm-256', 'openssl-aes128-gcm', 'openssl-aes256-gcm', 'openssl-chacha20'. Empty string means default (aes-gcm)"
|
||||
zh-CN: "要使用的加密算法,支持:''(默认aes-gcm)、'xor'、'chacha20'、'aes-gcm'、'aes-gcm-256'、'openssl-aes128-gcm'、'openssl-aes256-gcm'、'openssl-chacha20'"
|
||||
multi_thread:
|
||||
en: "use multi-thread runtime, default is single-thread"
|
||||
zh-CN: "使用多线程运行时,默认为单线程"
|
||||
en: "multi-thread tokio runtime (default on). Only affects launcher-based deployments (GUI/mobile/web/Windows service); the easytier-core CLI always runs single-threaded."
|
||||
zh-CN: "多线程 tokio 运行时(默认开启)。仅对 launcher 部署(GUI/移动端/web/Windows 服务)生效;easytier-core CLI 始终为单线程。"
|
||||
multi_thread_count:
|
||||
en: "the number of threads to use, default is 2, only effective when multi-thread is enabled, must be greater than 2"
|
||||
zh-CN: "使用的线程数,默认为2,仅在多线程模式下有效。取值必须大于2"
|
||||
en: "the number of worker threads, default 2, only effective when multi-thread is enabled, minimum 2"
|
||||
zh-CN: "worker 线程数,默认 2,仅在启用多线程时生效,最小为 2"
|
||||
disable_ipv6:
|
||||
en: "do not use ipv6"
|
||||
zh-CN: "不使用IPv6"
|
||||
|
||||
@@ -23,6 +23,9 @@ pub static malloc_conf: &[u8] = b"retain:false\0";
|
||||
|
||||
rust_i18n::i18n!("locales", fallback = "en");
|
||||
|
||||
// The easytier-core CLI intentionally uses a single-thread runtime. The
|
||||
// `multi_thread` flag only affects launcher-based deployments (GUI / mobile /
|
||||
// web / Windows service); see launcher.rs:223.
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
async fn main() -> std::process::ExitCode {
|
||||
core::main().await
|
||||
|
||||
Reference in New Issue
Block a user