diff --git a/main_windows.go b/main_windows.go index d3cd82b..88e6264 100644 --- a/main_windows.go +++ b/main_windows.go @@ -9,6 +9,7 @@ import ( "fmt" "os" "os/signal" + "syscall" "git.zx2c4.com/wireguard-go/tun" ) @@ -71,6 +72,8 @@ func main() { // wait for program to terminate signal.Notify(term, os.Interrupt) + signal.Notify(term, os.Kill) + signal.Notify(term, syscall.SIGTERM) select { case <-term: