feat: upgrade max_retry logic and change version
All checks were successful
build / build (push) Successful in 2m9s
All checks were successful
build / build (push) Successful in 2m9s
This commit is contained in:
@@ -33,6 +33,7 @@ func NewRule(
|
||||
Status string,
|
||||
Method string,
|
||||
ttl string,
|
||||
max_retry int,
|
||||
) error {
|
||||
r, err := LoadRuleConfig()
|
||||
if err != nil {
|
||||
@@ -51,6 +52,7 @@ func NewRule(
|
||||
Status: Status,
|
||||
Method: Method,
|
||||
BanTime: ttl,
|
||||
MaxRetry: max_retry,
|
||||
},
|
||||
)
|
||||
file, err := os.Create("/etc/banforge/rules.toml")
|
||||
|
||||
Reference in New Issue
Block a user