diff --git a/firewall.go b/firewall.go index 9cba929..1af8ed9 100644 --- a/firewall.go +++ b/firewall.go @@ -122,13 +122,14 @@ func firewallDelete(ipaddr, portstring string) error { logit(5, "Firewall removing from zone '"+zone+"': "+ipaddr) + ipcache.Remove(ipaddr) + //ipcache.Remove(ipaddr+":"+pp.Port+"/"+pp.Proto) + fwOutput, err := exec.Command("firewall-cmd", "--zone="+zone, "--remove-source="+ipaddr).CombinedOutput() if err != nil { logit(3, "Error executing firewall-cmd: "+err.Error()+" OUTPUT: "+string(fwOutput)) return errors.New("Error executing firewall-cmd: " + err.Error()) } - ipcache.Remove(ipaddr) - //ipcache.Remove(ipaddr+":"+pp.Port+"/"+pp.Proto) return nil }