From 0a72911f7cc9b735df7928335b573e5dee047506 Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Thu, 11 Jan 2018 09:01:51 +0800 Subject: Fix #2766. --- mitmproxy/addons/clientplayback.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mitmproxy/addons/clientplayback.py b/mitmproxy/addons/clientplayback.py index 3fd96669..2dd488b9 100644 --- a/mitmproxy/addons/clientplayback.py +++ b/mitmproxy/addons/clientplayback.py @@ -35,6 +35,9 @@ class ClientPlayback: """ Replay requests from flows. """ + for f in flows: + if f.live: + raise exceptions.CommandError("Can't replay live flow.") self.flows = list(flows) ctx.log.alert("Replaying %s flows." % len(self.flows)) ctx.master.addons.trigger("update", []) -- cgit v1.2.3