docs(main): 更新协议过滤器帮助文本

将 `-f` 参数的帮助文本从简单的 "tcp" 更新为更详细的说明,
现在显示 "'tcp' or 'udp' or 'tcp or udp'" 来明确支持的协议选项。
这提高了用户对 BPF 过滤器功能的理解和使用体验。
```
This commit is contained in:
2025-11-23 13:56:24 +08:00
parent 385a4b435e
commit 4fb84e3312
2 changed files with 1 additions and 1 deletions

BIN
denyip

Binary file not shown.

View File

@@ -447,7 +447,7 @@ func HandleCmd() {
var help bool
InterfaceName = flag.String("i", "", "指定要使用的网络接口")
flag.BoolVar(&InterfacesList, "l", false, "列出可用的网络接口")
Protocol = flag.String("f", "tcp", "指定 BPF 过滤器")
Protocol = flag.String("f", "'tcp' or 'udp' or 'tcp or udp'", "指定 BPF 过滤器")
PcapFile = flag.String("o", "", "保存捕获数据的输出文件(可选)")
flag.StringVar(&instruction, "s", "", "-s start 启动 Iptables 规则\n-s stop 停止 Iptables 规则\n-s list 打印 Iptables 规则")
flag.BoolVar(&help, "h", false, "")