aboutsummaryrefslogtreecommitdiffstats
path: root/main_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'main_windows.go')
-rw-r--r--main_windows.go3
1 files changed, 3 insertions, 0 deletions
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: