Song Gao 6 jaren geleden
bovenliggende
commit
ed5454b50a
8 gewijzigde bestanden met toevoegingen van 5 en 19 verwijderingen
  1. 0 2
      if_linux.go
  2. 0 1
      ipv4_windows_test.go
  3. 0 2
      params_darwin.go
  4. 0 2
      params_linux.go
  5. 0 2
      params_windows.go
  6. 0 2
      syscalls_darwin.go
  7. 0 2
      syscalls_linux.go
  8. 5 6
      syscalls_windows.go

+ 0 - 2
if_linux.go

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

+ 0 - 1
ipv4_windows_test.go

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

+ 0 - 2
params_darwin.go

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

+ 0 - 2
params_linux.go

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

+ 0 - 2
params_windows.go

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

+ 0 - 2
syscalls_darwin.go

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

+ 0 - 2
syscalls_linux.go

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

+ 5 - 6
syscalls_windows.go

@@ -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