优化核心逻辑
This commit is contained in:
2
ipset.go
2
ipset.go
@@ -81,7 +81,7 @@ func Is_Name_Ipset(setName string) int {
|
||||
}
|
||||
|
||||
func Is_Ip_Ipset(ip string) int {
|
||||
cmd := exec.Command("sh", "-c", fmt.Sprintf("ipset list | grep \"%s\" | cut -d ':' -f 2 | sed 's/ //g'", ip))
|
||||
cmd := exec.Command("sh", "-c", fmt.Sprintf("ipset list | grep \"%s\"", ip))
|
||||
err := cmd.Run()
|
||||
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user