JackDoan 6 miesięcy temu
rodzic
commit
b7466f0d7d
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 	}