Skip to content

Commit

Permalink
ovpncli.cpp: update stats with DCO data before querying them
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
  • Loading branch information
ordex committed Jun 7, 2021
1 parent 0f264b7 commit 4fa0d67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/ovpncli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,7 @@ namespace openvpn {
// data. Vice versa for TUN_*_IN.
if (stats)
{
stats->dco_update();
ret.bytesOut = stats->stat_count(SessionStats::TUN_BYTES_IN);
ret.bytesIn = stats->stat_count(SessionStats::TUN_BYTES_OUT);
ret.packetsOut = stats->stat_count(SessionStats::TUN_PACKETS_IN);
Expand Down

0 comments on commit 4fa0d67

Please sign in to comment.