mirror of
https://github.com/net-byte/water.git
synced 2024-04-21 12:21:38 +00:00
fix log
This commit is contained in:
+2
-1
@@ -4,6 +4,7 @@
|
||||
package water
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/netip"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
@@ -68,7 +69,7 @@ func openDev(config Config) (ifce *Interface, err error) {
|
||||
domains := []string{"wintun.dns"}
|
||||
err = link.SetDNS(windows.AF_INET, servers, domains)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
log.Println(err)
|
||||
}
|
||||
|
||||
wintun := &wintun{dev: dev}
|
||||
|
||||
Reference in New Issue
Block a user