mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Fixed the logging
This commit is contained in:
parent
fd453d986c
commit
0a93d261e1
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
if guid, err = windows.GUIDFromString("{8f59971a-7872-4aa6-b2eb-061fc4e9d0a7}"); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
tun.log.Printf("Creating TUN")
|
|
||||||
iface, err = wgtun.CreateTUNWithRequestedGUID(ifname, &guid, int(mtu))
|
iface, err = wgtun.CreateTUNWithRequestedGUID(ifname, &guid, int(mtu))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Very rare condition, it will purge the old device and create new
|
// 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()
|
wintun.Uninstall()
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
tun.log.Printf("Trying again")
|
tun.log.Printf("Trying again")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue