Browse Source

only correct request add into transfer size

dev
BreakWa11 9 years ago
parent
commit
4b97412569
  1. 3
      shadowsocks/tcprelay.py

3
shadowsocks/tcprelay.py

@ -276,7 +276,8 @@ class TCPRelayHandler(object):
pass
else:
if sock == self._remote_sock:
self._server.server_transfer_ul += len(data)
if self._encrypt_correct:
self._server.server_transfer_ul += len(data)
elif self._encrypt_correct and (self._obfs is not None):
obfs_encode = self._obfs.server_encode(data)
data = obfs_encode

Loading…
Cancel
Save