JackDoan hai 6 meses
pai
achega
b7466f0d7d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      overlay/tun_linux.go

+ 1 - 1
overlay/tun_linux.go

@@ -240,7 +240,7 @@ func (t *tun) SupportsMultiqueue() bool {
 }
 
 func (t *tun) NewMultiQueueReader() (io.ReadWriteCloser, error) {
-	fd, err := unix.Open("/dev/net/tun", os.O_RDWR, 0)
+	fd, err := unix.Open("/dev/net/tun", os.O_RDWR|unix.O_NONBLOCK, 0)
 	if err != nil {
 		return nil, err
 	}