From 4a8f7ac4fb3d78e884da653a9635899b5d7bb97b Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Tue, 4 Jan 2022 03:14:47 +0300 Subject: [PATCH] Call WinDivertShutdown on shutdown --- src/goodbyedpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index a1b42af..2635860 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -309,6 +309,7 @@ static HANDLE init(char *filter, UINT64 flags) { static int deinit(HANDLE handle) { if (handle) { + WinDivertShutdown(handle, WINDIVERT_SHUTDOWN_BOTH); WinDivertClose(handle); return TRUE; }