diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-03-06 16:54:49 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-03-06 16:54:49 +1300 |
commit | ec00b5a66e44454fce3d347203ad85ce4d8feaf6 (patch) | |
tree | 8ccaf7656647fafb1b447463b0d5c1feef716690 /mitmdump | |
parent | e794cbc0d8932d8dfaf3676fdd3af108e0e9edfd (diff) | |
download | mitmproxy-ec00b5a66e44454fce3d347203ad85ce4d8feaf6.tar.gz mitmproxy-ec00b5a66e44454fce3d347203ad85ce4d8feaf6.tar.bz2 mitmproxy-ec00b5a66e44454fce3d347203ad85ce4d8feaf6.zip |
Make mitmdump exit after client replay is complete by default.
Add an option --keepserving to make it keep serving after replay.
Diffstat (limited to 'mitmdump')
-rwxr-xr-x | mitmdump | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -28,17 +28,19 @@ if __name__ == '__main__': usage = "%prog [options] [filter]", version="%%prog %s"%VERSION, ) - parser.add_option( - "-p", action="store", - type = "int", dest="port", default=8080, - help = "Proxy service port." - ) parser.add_option("-i", action="store_true", dest="stickycookie_all", default=None, help="Set sticky cookie for all requests.") parser.add_option("-I", action="store", dest="stickycookie_filt", default=None, metavar="FILTER", help="Set sticky cookie filter. Matched against requests.") + parser.add_option("--keepserving", + action="store_true", dest="keepserving", default=False, + help="Continue serving after playback.") + parser.add_option("-p", + action="store", + type = "int", dest="port", default=8080, + help = "Proxy service port.") parser.add_option("-q", action="store_true", dest="quiet", help="Quiet.") @@ -97,6 +99,7 @@ if __name__ == '__main__': kill = options.kill, rheaders = options.rheaders, client_replay = options.client_replay, + keepserving = options.keepserving, stickycookie = stickycookie, ) if args: @@ -104,9 +107,6 @@ if __name__ == '__main__': else: filt = None - if options.verbose > 0: - print >> sys.stderr, "Running on port %s"%options.port - try: m = dump.DumpMaster(server, dumpopts, filt) m.run() |