feat(iptables): 更新 iptables 规则命令并添加 reload 功能

移除了 iptables 命令中的冗余协议参数 `-p tcp`,统一使用更通用的匹配方式。
新增 `-s reload` 参数支持重新加载 iptables 规则,提升操作便利性。
同时更新了依赖库版本,包括 ip2region 和 golang.org/x 包。
```
This commit is contained in:
2025-12-09 13:25:08 +08:00
parent 4fb84e3312
commit 7c783f7bdf
5 changed files with 31 additions and 6 deletions

6
go.mod
View File

@@ -4,10 +4,10 @@ go 1.25.4
require (
github.com/google/gopacket v1.1.19
github.com/lionsoul2014/ip2region/binding/golang v0.0.0-20251121144738-613501fc0093
github.com/lionsoul2014/ip2region/binding/golang v0.0.0-20251207115101-d4b8f9f841b9
)
require (
golang.org/x/net v0.47.0 // indirect
golang.org/x/sys v0.38.0 // indirect
golang.org/x/net v0.48.0 // indirect
golang.org/x/sys v0.39.0 // indirect
)