1
0
mirror of https://github.com/fumiama/water.git synced 2026-06-27 15:30:24 +08:00

fix: Failed to register rings: 参数错误

This commit is contained in:
fumiama
2021-12-29 22:04:09 +08:00
parent a18737bcce
commit 29e50756f7

View File

@@ -338,7 +338,7 @@ func openDev(config Config) (ifce *Interface, err error) {
// TUN // TUN
var ad *wintun.Adapter var ad *wintun.Adapter
if config.InterfaceName == "" { if config.InterfaceName == "" {
config.InterfaceName = "WinTun" config.InterfaceName = "Water WinTun Interface"
} }
ad, err = wintun.OpenAdapter(config.InterfaceName) ad, err = wintun.OpenAdapter(config.InterfaceName)
if err != nil { if err != nil {