mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
Merge pull request #30 from ajeecai/master
fix a bug where TUN flag was used for TAP interface
This commit is contained in:
commit
352f2426f8
2 changed files with 2 additions and 1 deletions
|
@ -6,3 +6,4 @@ daregod <daregod@yandex.ru>
|
|||
Lucus Lee <lixin9311@gmail.com>
|
||||
Arroyo Networks, LLC <open.source@arroyonetworks.com>
|
||||
Tony Lu <tonyluj@gmail.com>
|
||||
ajee cai <ajee.cai@gmail.com>
|
||||
|
|
|
@ -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