mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
TAP interface doesn't work as expected
The flags should be set to TAP instead of TUN, then resolve my issue at https://github.com/songgao/water/issues/28.
This commit is contained in:
parent
6b639456fc
commit
56d7fa05b1
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ func newTAP(config Config) (ifce *Interface, err error) {
|
|||
}
|
||||
|
||||
var flags uint16
|
||||
flags = cIFF_TUN | cIFF_NO_PI
|
||||
flags = cIFF_TAP | cIFF_NO_PI
|
||||
if config.PlatformSpecificParams.MultiQueue {
|
||||
flags |= cIFF_MULTI_QUEUE
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue