mirror of
https://github.com/fumiama/water.git
synced 2026-06-07 11:10:28 +08:00
13 lines
245 B
Go
13 lines
245 B
Go
// +build windows
|
|
|
|
package water
|
|
|
|
import "errors"
|
|
|
|
func newDev(config Config) (ifce *Interface, err error) {
|
|
if config.DeviceType != TAP && config.DeviceType != TUN {
|
|
return nil, errors.New("unknown device type")
|
|
}
|
|
return openDev(config)
|
|
}
|