aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-23 23:31:26 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-23 23:31:26 +1200
commita950a4d7a3097685d54f325f32a169034e9435f1 (patch)
tree70c183f1a892cef1413ad1676a2f6a3b26171287 /pathod
parent190392ea13f998fe298d48738131779f522d62e9 (diff)
downloadmitmproxy-a950a4d7a3097685d54f325f32a169034e9435f1.tar.gz
mitmproxy-a950a4d7a3097685d54f325f32a169034e9435f1.tar.bz2
mitmproxy-a950a4d7a3097685d54f325f32a169034e9435f1.zip
Add pathod --noapi to turn off the service API.
Diffstat (limited to 'pathod')
-rwxr-xr-xpathod9
1 files changed, 7 insertions, 2 deletions
diff --git a/pathod b/pathod
index 0bb8da31..a5cc02ca 100755
--- a/pathod
+++ b/pathod
@@ -27,8 +27,12 @@ if __name__ == "__main__":
help='Size limit of served responses. Understands size suffixes, i.e. 100k.'
)
parser.add_argument(
+ "--noapi", dest='noapi', default=False, action="store_true",
+ help='Disable API.'
+ )
+ parser.add_argument(
"--noweb", dest='noweb', default=False, action="store_true",
- help='Disable web interface and API.'
+ help='Disable both web interface and API.'
)
parser.add_argument(
"--nocraft", dest='nocraft', default=False, action="store_true",
@@ -90,7 +94,8 @@ if __name__ == "__main__":
anchors = alst,
sizelimit = sizelimit,
noweb = args.noweb,
- nocraft = args.nocraft
+ nocraft = args.nocraft,
+ noapi = args.noapi
)
except pathod.PathodError, v:
parser.error(str(v))