v0.2.0 #3

Merged
kor-elf merged 22 commits from develop into main 2026-04-26 16:50:47 +05:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 7d6dcf1ece - Show all commits
+5
View File
@@ -0,0 +1,5 @@
package nft
func Clear() []string {
return []string{"flush", "ruleset"}
}
+2 -1
View File
@@ -9,6 +9,7 @@ import (
nftContract "git.kor-elf.net/kor-elf-shield/go-nftables-client/contract/nft" nftContract "git.kor-elf.net/kor-elf-shield/go-nftables-client/contract/nft"
"git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/chain" "git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/chain"
"git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/command" "git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/command"
nftCommand "git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/pkg/nft"
"git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/rule" "git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/rule"
"git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/table" "git.kor-elf.net/kor-elf-shield/go-nftables-client/internal/table"
) )
@@ -50,7 +51,7 @@ func NewWithPath(path string) (contract.NFT, error) {
} }
func (n *nft) Clear() error { func (n *nft) Clear() error {
args := []string{"flush", "ruleset"} args := nftCommand.Clear()
return n.command.Run(args...) return n.command.Run(args...)
} }