增加全局IP白名单功能

This commit is contained in:
wsczx
2024-10-04 16:02:24 +08:00
parent 59748fe395
commit c8cb9c163a
5 changed files with 77 additions and 16 deletions

View File

@@ -17,6 +17,8 @@ func Start() {
sessdata.Start()
cron.Start()
initAntiBruteForce() //初始化防爆破定时器和IP白名单
// 开启服务器转发
err := execCmd([]string{"sysctl -w net.ipv4.ip_forward=1"})
if err != nil {