Fixed formatting in mitmdump

This commit is contained in:
Ujjwal Verma 2017-04-22 11:24:22 +05:30
parent 6af72160bf
commit 73692b909b
2 changed files with 4 additions and 3 deletions

View File

@ -102,7 +102,7 @@ class Dumper:
if flow.client_conn:
client = click.style(
strutils.escape_control_characters(
repr(flow.client_conn.address)
human.format_address(flow.client_conn.address)
)
)
elif flow.request.is_replay:

View File

@ -30,9 +30,10 @@ def flowdetails(state, flow: http.HTTPFlow):
if sc is not None:
text.append(urwid.Text([("head", "Server Connection:")]))
parts = [
["Address", "{}".format(human.format_address(sc.address))],
["Resolved Address", "{}".format(human.format_address(sc.ip_address))],
["Address", human.format_address(sc.address)],
]
if sc.ip_address:
parts.append(["Resolved Address", human.format_address(sc.ip_address)])
if resp:
parts.append(["HTTP Version", resp.http_version])
if sc.alpn_proto_negotiated: