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:
fanyang
2026-06-24 20:54:45 +08:00
parent a247358ec1
commit bf8cff60bf
2 changed files with 7 additions and 4 deletions
+4 -4
View File
@@ -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"
+3
View File
@@ -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