From 009cd6fa1975125b9c324fb22e171f724d3e7da9 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 22 May 2019 11:50:20 +0200 Subject: tunnel: disable firewall before destroying wintun Otherwise there's a tiny race. Signed-off-by: Jason A. Donenfeld --- tunnel/ifaceconfig.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tunnel') diff --git a/tunnel/ifaceconfig.go b/tunnel/ifaceconfig.go index b993d739..7d0f1187 100644 --- a/tunnel/ifaceconfig.go +++ b/tunnel/ifaceconfig.go @@ -207,6 +207,8 @@ func unconfigureInterface(tun *tun.NativeTun) { winipcfg.FlushInterfaceIPAddresses(luid, windows.AF_INET6) //TODO: also flush DNS servers once rozmansi fixes the API for that to take a LUID + + firewall.DisableFirewall() } func enableFirewall(conf *conf.Config, tun *tun.NativeTun) error { -- cgit v1.2.3-59-g8ed1b