rules

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RefuseMap = set.New()

RefuseMap 拦截IP-端口,因为验证ip有时间差,攻击频率太高会导致防火墙重复添加。

Functions

func Check

func Check(text string)

func CheckRules added in v1.2.0

func CheckRules(ip string, port int) (refuse bool, desc string, p, count int)

CheckRules 检测访问规则 ip-访问者IP, port-转发端口 返回: refuse-是否加入规则拒绝访问, desc-描述, p-拒绝访问端口, count-规则间隔内访问次数

func Init

func Init()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址