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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user