mirror of
https://github.com/fumiama/water.git
synced 2026-06-17 17:10:34 +08:00
fix cid err
This commit is contained in:
@@ -214,6 +214,9 @@ func setStatus(fd syscall.Handle, status bool) error {
|
||||
}
|
||||
|
||||
func openTap(config Config) (ifce *Interface, err error) {
|
||||
if config.ComponentID == "" {
|
||||
config.ComponentID = "root\\tap0901"
|
||||
}
|
||||
// find the device in registry.
|
||||
deviceid, err := getdeviceid(config.PlatformSpecificParams.ComponentID, config.PlatformSpecificParams.InterfaceName)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user