From cb11426bd6a18cb9f6772fa98c17067a35fbceb4 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Sun, 19 Feb 2023 14:43:55 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20readme=20=E6=B7=BB=E5=8A=A0=20flags=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=8C=87=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7379281..c564044 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ OpenWrt 特供插件: [Mmx233/BitSrunLoginGo_Openwrt](https://github.com/Mmx23 编译结果为可执行文件,下载 release 或编译后直接启动即可 -可以通过添加启动参数 `--config` 指定配置文件路径,默认为当前目录的 `Config.yaml` +首次运行将自动生成配置文件,首次使用建议开启调试日志(`settings.log.debug_level`),可以通过添加启动参数 `--config` 指定配置文件路径,默认为当前目录的 `Config.yaml` 支持 `json`、`yaml`、`yml`、`toml`、`hcl`、`tfvars` 等,仅对 `json`和`yaml` 进行了优化与测试 @@ -22,7 +22,12 @@ OpenWrt 特供插件: [Mmx233/BitSrunLoginGo_Openwrt](https://github.com/Mmx23 ./autoLogin --config=/demo/i.json ``` -首次运行将自动生成配置文件,首次使用建议开启调试日志(`settings.log.debug_level`) +其他 Flags: + +```text +--ip [ip] #指定认证客户端 ip,多网卡模式无效 +--daemon #忽略配置文件挂起设定,强制后台挂起 +``` Config.yaml 说明: