mirror of
https://github.com/fumiama/water.git
synced 2026-06-23 12:40:40 +08:00
Added description for specifying an interface name for Windows
This commit is contained in:
committed by
Song Gao
parent
d689e71bf7
commit
f7eb3ca99f
@@ -11,3 +11,4 @@ yinheli <hi@yinheli.com>
|
|||||||
Paul Querna <pquerna@apache.org>
|
Paul Querna <pquerna@apache.org>
|
||||||
Cuong Manh Le <cuong.manhle.vn@gmail.com>
|
Cuong Manh Le <cuong.manhle.vn@gmail.com>
|
||||||
Neil Alexander <neilalexander@users.noreply.github.com>
|
Neil Alexander <neilalexander@users.noreply.github.com>
|
||||||
|
Dmitry Shihovtsev <soffokulus@gmail.com>
|
||||||
|
|||||||
15
README.md
15
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.
|
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
|
## TODO
|
||||||
* tuntaposx for TAP on Darwin
|
* tuntaposx for TAP on Darwin
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user