Skip to content

Commit

Permalink
dns dumper: fix colors
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Sep 22, 2022
1 parent db9b3c2 commit f89a8ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mitmproxy/addons/dumper.py
Expand Up @@ -362,8 +362,8 @@ def _echo_dns_query(self, f: dns.DNSFlow) -> None:

desc = f"DNS {opcode} ({type})"
desc_color = {
"DNS QUERY (A)": "green",
"DNS QUERY (AAAA)": "magenta",
"A": "green",
"AAAA": "magenta",
}.get(type, "red")
desc = self.style(desc, fg=desc_color)

Expand Down

0 comments on commit f89a8ce

Please sign in to comment.