mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
add new interface for init configuration (#15)
This commit is contained in:
parent
98078a8ac5
commit
37d6645a51
5 changed files with 109 additions and 0 deletions
18
params_windows.go
Normal file
18
params_windows.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
package water
|
||||
|
||||
// PlatformSpecificParams defines parameters in Config that are specific to
|
||||
// Windows. A zero-value of such type is valid.
|
||||
type PlatformSpecificParams struct {
|
||||
// ComponentID associates with the virtual adapter that exists in Windows.
|
||||
// This is usually configured when driver for the adapter is installed. A
|
||||
// zero-value of this field, i.e., an empty string, causes the interface to
|
||||
// use the default ComponentId. The default ComponentId is set to tap0901,
|
||||
// the one used by OpenVPN.
|
||||
ComponentID string
|
||||
}
|
||||
|
||||
func defaultPlatformSpecificParams() PlatformSpecificParams {
|
||||
return PlatformSpecificParams{
|
||||
ComponentId: "tap0901",
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue