Fixed counters

This commit is contained in:
Adolfo Gómez García 2022-02-01 13:10:13 +01:00
parent 082ef6830d
commit 4893fa4fbe

View File

@ -44,12 +44,12 @@ class TunnelProtocol(asyncio.Protocol):
if other_side:
self.other_side = other_side
self.stats_manager = other_side.stats_manager
# self.counter = self.stats_manager.as_recv_counter()
self.counter = self.stats_manager.as_recv_counter()
self.runner = self.do_proxy
else:
self.other_side = self
self.stats_manager = stats.Stats(owner.ns)
# self.counter = self.stats_manager.as_sent_counter()
self.counter = self.stats_manager.as_sent_counter()
self.runner = self.do_command
# transport is undefined until connection_made is called