This commit is contained in:
Song Gao 2019-01-12 14:39:23 -08:00
parent 2ee3b4ef0b
commit ed5454b50a
8 changed files with 5 additions and 19 deletions

View File

@ -1,5 +1,3 @@
// +build linux
package water
import (

View File

@ -1,4 +1,3 @@
// +build windows
package water
import (

View File

@ -1,5 +1,3 @@
// +build darwin
package water
// PlatformSpecificParams defines parameters in Config that are specific to

View File

@ -1,5 +1,3 @@
// +build linux
package water
// DevicePermissions determines the owner and group owner for the newly created

View File

@ -1,5 +1,3 @@
// +build windows
package water
// PlatformSpecificParams defines parameters in Config that are specific to

View File

@ -1,5 +1,3 @@
// +build darwin
package water
import (

View File

@ -1,5 +1,3 @@
// +build linux
package water
import (

View File

@ -1,9 +1,3 @@
// +build windows
// To use it with windows, you need a tap driver installed on windows.
// https://github.com/OpenVPN/tap-windows6
// or just install OpenVPN
// https://github.com/OpenVPN/openvpn
package water
import (
@ -18,6 +12,11 @@ import (
"golang.org/x/sys/windows/registry"
)
// To use it with windows, you need a tap driver installed on windows.
// https://github.com/OpenVPN/tap-windows6
// or just install OpenVPN
// https://github.com/OpenVPN/openvpn
var (
errIfceNameNotFound = errors.New("Failed to find the name of interface")
// Device Control Codes