Skip to content

Commit

Permalink
don't set length for stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
zivillian committed Sep 3, 2023
1 parent ff181af commit 068fecd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RfpProxy.Pcap/PcapClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ abstract class PcapClient : ProxyClient
public PcapClient(string socket, Stream file) : base(socket)
{
_file = file;
_file.SetLength(0);
if (_file.CanSeek)
{
_file.SetLength(0);
}
WritePcapHeader();
}

Expand Down

0 comments on commit 068fecd

Please sign in to comment.