mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-20 00:45:09 +03:00

The interface `Config` object is now passed directly into each creation function in order to more easily use additional options. In addition, the linux and darwin parameters were split to better capture different options for each platform.
13 lines
336 B
Go
13 lines
336 B
Go
// +build !linux,!darwin,!windows
|
|
|
|
package water
|
|
|
|
import "errors"
|
|
|
|
func newTAP(config Config) (ifce *Interface, err error) {
|
|
return nil, errors.New("tap interface not implemented on this platform")
|
|
}
|
|
|
|
func newTUN(config Config) (ifce *Interface, err error) {
|
|
return nil, errors.New("tap interface not implemented on this platform")
|
|
}
|