diff --git a/tls_passthrough.py b/tls_passthrough.py index b14c007..5904866 100644 --- a/tls_passthrough.py +++ b/tls_passthrough.py @@ -41,12 +41,12 @@ class Listener: print("=====>", flow.request.data) print("=====>headers-====>", flow.request.headers) - if 'ulogs.umeng.com/unify_logs' in url: - try: - ctx.log.info('flow request:' + url) - print('url===>' % (url)) - except Exception as e: - ctx.log.error('mitmproxy intercept http error:' + repr(e)) + # if 'ulogs.umeng.com/unify_logs' in url: + # try: + # ctx.log.info('flow request:' + url) + # print('url===>' % (url)) + # except Exception as e: + # ctx.log.error('mitmproxy intercept http error:' + repr(e)) def response(self, flow): resp = flow.response @@ -56,7 +56,6 @@ class Listener: class TlsStrategy(ABC): def __init__(self): - # A server_address -> interception results mapping self.history = collections.defaultdict(lambda: collections.deque(maxlen=200)) @abstractmethod