mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
12 lines
245 B
Go
12 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)
|
|
}
|