feat: Rename and set as method NftablesSetup -> Setup, fix template and types config, add create template config in system, update logic finds firewalls on system, add BurntSushi/toml as dependencies
This commit is contained in:
@@ -96,7 +96,7 @@ func (n *Nftables) Unban(ip string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func SetupNftables(config string) error {
|
||||
func (n *Nftables) Setup(config string) error {
|
||||
err := validateConfigPath(config)
|
||||
if err != nil {
|
||||
return fmt.Errorf("path error: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user