mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Improve the way we handle upstream errors
- Don't log a traceback for either HTTP or HTTPS DNS resolution or TCP connection errors. These are "ordinary" errors, not mitmproxy issues. - Ensure that the error handler is correctly called for SSL-related protocol errors.
This commit is contained in:
@@ -32,8 +32,8 @@ class MyMaster(flow.FlowMaster):
|
||||
print("error", f)
|
||||
|
||||
@controller.handler
|
||||
def log(self, f):
|
||||
print("log", f)
|
||||
def log(self, l):
|
||||
print("log", l.msg)
|
||||
|
||||
opts = options.Options(cadir="~/.mitmproxy/")
|
||||
config = ProxyConfig(opts)
|
||||
|
||||
Reference in New Issue
Block a user