mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
[dns] minor fixes
This commit is contained in:
parent
4c2365ebeb
commit
af2251c2ef
6 changed files with 80 additions and 62 deletions
|
|
@ -8,7 +8,7 @@ from typing import List, Type
|
|||
import mitmproxy.addons.next_layer # noqa
|
||||
from mitmproxy import hooks, log, addonmanager
|
||||
from mitmproxy.proxy import server_hooks, layer
|
||||
from mitmproxy.proxy.layers import http, modes, tcp, tls, websocket
|
||||
from mitmproxy.proxy.layers import dns, http, modes, tcp, tls, websocket
|
||||
|
||||
known = set()
|
||||
|
||||
|
|
@ -106,6 +106,16 @@ with outfile.open("w") as f, contextlib.redirect_stdout(f):
|
|||
]
|
||||
)
|
||||
|
||||
category(
|
||||
"DNS",
|
||||
"",
|
||||
[
|
||||
dns.DnsRequestHook,
|
||||
dns.DnsResponseHook,
|
||||
dns.DnsErrorHook,
|
||||
]
|
||||
)
|
||||
|
||||
category(
|
||||
"TCP",
|
||||
"",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue