Fix closing nf conntrack session when stopping during start
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user