diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 21:51:43 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 21:51:43 +1200 |
| commit | eb1f2c3fc40ccfc0db60776412add6a35af93bf9 (patch) | |
| tree | 3ca4b9a19022eb369b53549073a9f25b2120e130 /pathod | |
| parent | 97fe026c3230e1be12536e7390ef374447ffe9e8 (diff) | |
| download | mitmproxy-eb1f2c3fc40ccfc0db60776412add6a35af93bf9.tar.gz mitmproxy-eb1f2c3fc40ccfc0db60776412add6a35af93bf9.tar.bz2 mitmproxy-eb1f2c3fc40ccfc0db60776412add6a35af93bf9.zip | |
Add option to specify craft anchor point.
Diffstat (limited to 'pathod')
| -rwxr-xr-x | pathod | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -11,6 +11,10 @@ if __name__ == "__main__": help='Add an anchor. Specified as a string with the form pattern=pagespec' ) parser.add_argument( + "-c", dest='craftanchor', default="/p/", type=str, + help='Anchorpoint for URL crafting commands.' + ) + parser.add_argument( "-d", dest='staticdir', default=None, type=str, help='Directory for static files.' ) @@ -89,6 +93,7 @@ if __name__ == "__main__": try: pd = pathod.Pathod( (args.address, args.port), + craftanchor = args.craftanchor, ssloptions = ssl, staticdir = args.staticdir, anchors = alst, |
