1
0
mirror of https://github.com/fumiama/water.git synced 2026-06-07 11:10:28 +08:00
Files
water/if_windows.go
lucus 933e95c058 Support new config method.
Refined code.
2017-01-09 18:55:36 +09:00

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)
}