1
0
mirror of https://github.com/fumiama/water.git synced 2026-06-05 02:00:29 +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:
Song Gao
2017-09-01 08:43:10 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -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>

View File

@@ -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
}