mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
Simplifies Platform Specific Interface Creation
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.
This commit is contained in:
parent
80f6655041
commit
70591d2499
9 changed files with 38 additions and 48 deletions
|
@ -4,10 +4,10 @@ package water
|
|||
|
||||
import "errors"
|
||||
|
||||
func newTAP(ifName string) (ifce *Interface, err error) {
|
||||
func newTAP(config Config) (ifce *Interface, err error) {
|
||||
return nil, errors.New("tap interface not implemented on this platform")
|
||||
}
|
||||
|
||||
func newTUN(ifName string) (ifce *Interface, err error) {
|
||||
func newTUN(config Config) (ifce *Interface, err error) {
|
||||
return nil, errors.New("tap interface not implemented on this platform")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue