Explorar o código

Added description for specifying an interface name for Windows

Dmitry Shihovtsev %!s(int64=6) %!d(string=hai) anos
pai
achega
f7eb3ca99f
Modificáronse 2 ficheiros con 16 adicións e 0 borrados
  1. 1 0
      CONTRIBUTORS
  2. 15 0
      README.md

+ 1 - 0
CONTRIBUTORS

@@ -11,3 +11,4 @@ yinheli <[email protected]>
 Paul Querna <[email protected]>
 Cuong Manh Le <[email protected]>
 Neil Alexander <[email protected]>
+Dmitry Shihovtsev <[email protected]>

+ 15 - 0
README.md

@@ -220,6 +220,21 @@ ping 10.1.0.255
 
 You'll see output containing the IPv4 ICMP frame same as the Linux version.
 
+#### Specifying interface name
+
+If you are going to use multiple TAP devices on the Windows, there is a way to specify an interface name to select the exact device that you need:
+
+```go
+	ifce, err := water.New(water.Config{
+		DeviceType: water.TAP,
+		PlatformSpecificParams: water.PlatformSpecificParams{
+			ComponentID:   "tap0901",
+			InterfaceName: "Ethernet 3",
+			Network:       "192.168.1.10/24",
+		},
+	})
+```
+
 ## TODO
 * tuntaposx for TAP on Darwin