Revert permenent verdicts

This commit is contained in:
Vladimir Stoilov 2024-04-17 11:19:25 +03:00
parent c425007be1
commit e082d047de
No known key found for this signature in database
GPG key ID: 2F190B67A43A81AF

View file

@ -94,7 +94,7 @@ func (pkt *Packet) Drop() error {
// PermanentAccept permanently accepts connection (and the current packet).
func (pkt *Packet) PermanentAccept() error {
if pkt.verdictSet.SetToIf(false, true) {
return SetVerdict(pkt, kext_interface.VerdictAccept)
return SetVerdict(pkt, kext_interface.VerdictPermanentAccept)
}
return nil
}
@ -102,7 +102,7 @@ func (pkt *Packet) PermanentAccept() error {
// PermanentBlock permanently blocks connection (and the current packet).
func (pkt *Packet) PermanentBlock() error {
if pkt.verdictSet.SetToIf(false, true) {
return SetVerdict(pkt, kext_interface.VerdictBlock)
return SetVerdict(pkt, kext_interface.VerdictPermanentBlock)
}
return nil
}
@ -110,7 +110,7 @@ func (pkt *Packet) PermanentBlock() error {
// PermanentDrop permanently drops connection (and the current packet).
func (pkt *Packet) PermanentDrop() error {
if pkt.verdictSet.SetToIf(false, true) {
return SetVerdict(pkt, kext_interface.VerdictDrop)
return SetVerdict(pkt, kext_interface.VerdictPermanentDrop)
}
return nil
}