mirror of
https://github.com/fumiama/water.git
synced 2026-06-10 13:10:27 +08:00
Merge pull request #30 from ajeecai/master
fix a bug where TUN flag was used for TAP interface
This commit is contained in:
@@ -6,3 +6,4 @@ daregod <daregod@yandex.ru>
|
|||||||
Lucus Lee <lixin9311@gmail.com>
|
Lucus Lee <lixin9311@gmail.com>
|
||||||
Arroyo Networks, LLC <open.source@arroyonetworks.com>
|
Arroyo Networks, LLC <open.source@arroyonetworks.com>
|
||||||
Tony Lu <tonyluj@gmail.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
|
var flags uint16
|
||||||
flags = cIFF_TUN | cIFF_NO_PI
|
flags = cIFF_TAP | cIFF_NO_PI
|
||||||
if config.PlatformSpecificParams.MultiQueue {
|
if config.PlatformSpecificParams.MultiQueue {
|
||||||
flags |= cIFF_MULTI_QUEUE
|
flags |= cIFF_MULTI_QUEUE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user