Revert permenent verdicts
This commit is contained in:
@@ -94,7 +94,7 @@ func (pkt *Packet) Drop() error {
|
|||||||
// PermanentAccept permanently accepts connection (and the current packet).
|
// PermanentAccept permanently accepts connection (and the current packet).
|
||||||
func (pkt *Packet) PermanentAccept() error {
|
func (pkt *Packet) PermanentAccept() error {
|
||||||
if pkt.verdictSet.SetToIf(false, true) {
|
if pkt.verdictSet.SetToIf(false, true) {
|
||||||
return SetVerdict(pkt, kext_interface.VerdictAccept)
|
return SetVerdict(pkt, kext_interface.VerdictPermanentAccept)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@@ -102,7 +102,7 @@ func (pkt *Packet) PermanentAccept() error {
|
|||||||
// PermanentBlock permanently blocks connection (and the current packet).
|
// PermanentBlock permanently blocks connection (and the current packet).
|
||||||
func (pkt *Packet) PermanentBlock() error {
|
func (pkt *Packet) PermanentBlock() error {
|
||||||
if pkt.verdictSet.SetToIf(false, true) {
|
if pkt.verdictSet.SetToIf(false, true) {
|
||||||
return SetVerdict(pkt, kext_interface.VerdictBlock)
|
return SetVerdict(pkt, kext_interface.VerdictPermanentBlock)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@ func (pkt *Packet) PermanentBlock() error {
|
|||||||
// PermanentDrop permanently drops connection (and the current packet).
|
// PermanentDrop permanently drops connection (and the current packet).
|
||||||
func (pkt *Packet) PermanentDrop() error {
|
func (pkt *Packet) PermanentDrop() error {
|
||||||
if pkt.verdictSet.SetToIf(false, true) {
|
if pkt.verdictSet.SetToIf(false, true) {
|
||||||
return SetVerdict(pkt, kext_interface.VerdictDrop)
|
return SetVerdict(pkt, kext_interface.VerdictPermanentDrop)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user