mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Small tweaks to read_dumpfile example.
This commit is contained in:
2
examples/read_dumpfile
Normal file → Executable file
2
examples/read_dumpfile
Normal file → Executable file
@@ -7,7 +7,7 @@ from libmproxy import flow
|
||||
import json
|
||||
import sys
|
||||
|
||||
with open("logfile", "rb") as logfile:
|
||||
with open(sys.argv[1], "rb") as logfile:
|
||||
freader = flow.FlowReader(logfile)
|
||||
try:
|
||||
for f in freader.stream():
|
||||
|
||||
Reference in New Issue
Block a user