From 0a93d261e1ff47ca8eec50f0fc04ead2fa348b45 Mon Sep 17 00:00:00 2001 From: Revertron <105154+Revertron@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:15:55 +0200 Subject: [PATCH] Fixed the logging --- src/tun/tun_windows.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tun/tun_windows.go b/src/tun/tun_windows.go index 35f161f4..a2861894 100644 --- a/src/tun/tun_windows.go +++ b/src/tun/tun_windows.go @@ -33,11 +33,10 @@ func (tun *TunAdapter) setup(ifname string, addr string, mtu uint64) error { if guid, err = windows.GUIDFromString("{8f59971a-7872-4aa6-b2eb-061fc4e9d0a7}"); err != nil { return err } - tun.log.Printf("Creating TUN") iface, err = wgtun.CreateTUNWithRequestedGUID(ifname, &guid, int(mtu)) if err != nil { // Very rare condition, it will purge the old device and create new - tun.log.Printf("Error creatung TUN: '%s'", err) + tun.log.Printf("Error creating TUN: '%s'", err) wintun.Uninstall() time.Sleep(3 * time.Second) tun.log.Printf("Trying again")