mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
Fix closing nf conntrack session when stopping during start
This commit is contained in:
parent
72c59c0e52
commit
0aae9b4697
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ func InitNFCT() error {
|
||||||
|
|
||||||
// TeardownNFCT deinitializes the network filter conntrack library.
|
// TeardownNFCT deinitializes the network filter conntrack library.
|
||||||
func TeardownNFCT() {
|
func TeardownNFCT() {
|
||||||
_ = nfct.Close()
|
if nfct != nil {
|
||||||
|
_ = nfct.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteAllMarkedConnection deletes all marked entries from the conntrack table.
|
// DeleteAllMarkedConnection deletes all marked entries from the conntrack table.
|
||||||
|
|
Loading…
Add table
Reference in a new issue