Browse Source

winws: enable stdout flushing when piping

pull/193/head
bol-van 11 months ago
parent
commit
d42a892828
  1. BIN
      binaries/win64/winws.exe
  2. BIN
      binaries/win64/zapret-winws/winws.exe
  3. 8
      nfq/nfqws.c

BIN
binaries/win64/winws.exe

Binary file not shown.

BIN
binaries/win64/zapret-winws/winws.exe

Binary file not shown.

8
nfq/nfqws.c

@ -417,6 +417,10 @@ static int win_main(const char *windivert_filter)
pre_desync();
// cygwin auto flush fails when piping
fflush(stdout);
fflush(stderr);
for (id=0;;id++)
{
len = sizeof(packet);
@ -465,6 +469,10 @@ static int win_main(const char *windivert_filter)
default:
DLOG("packet: id=%u drop\n", id);
}
// cygwin auto flush fails when piping
fflush(stdout);
fflush(stderr);
}
return 0;
}

Loading…
Cancel
Save