Prechádzať zdrojové kódy

Merge pull request #30 from ajeecai/master

fix a bug where TUN flag was used for TAP interface
Song Gao 8 rokov pred
rodič
commit
352f2426f8
2 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 1 0
      CONTRIBUTORS
  2. 1 1
      syscalls_linux.go

+ 1 - 0
CONTRIBUTORS

@@ -6,3 +6,4 @@ daregod <[email protected]>
 Lucus Lee <[email protected]>
 Arroyo Networks, LLC <[email protected]>
 Tony Lu <[email protected]>
+ajee cai <[email protected]>

+ 1 - 1
syscalls_linux.go

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