mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-01-12 22:48:54 +08:00
remove mitmweb auth
9b08279c7c removed the actual functionality.
we should not have a command line switch that does nothing. :)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
This example shows how to build a proxy based on mitmproxy's Flow
|
||||
primitives.
|
||||
|
||||
@@ -883,21 +883,6 @@ def mitmweb():
|
||||
action="store_true", dest="wdebug",
|
||||
help="Turn on mitmweb debugging"
|
||||
)
|
||||
group.add_argument(
|
||||
"--wsingleuser",
|
||||
action="store", dest="wsingleuser", type=str,
|
||||
metavar="USER",
|
||||
help="""
|
||||
Allows access to a a single user, specified in the form
|
||||
username:password.
|
||||
"""
|
||||
)
|
||||
group.add_argument(
|
||||
"--whtpasswd",
|
||||
action="store", dest="whtpasswd", type=str,
|
||||
metavar="PATH",
|
||||
help="Allow access to users specified in an Apache htpasswd file."
|
||||
)
|
||||
|
||||
common_options(parser)
|
||||
group = parser.add_argument_group(
|
||||
|
||||
@@ -135,8 +135,6 @@ def mitmweb(args=None): # pragma: no cover
|
||||
web_options.wdebug = args.wdebug
|
||||
web_options.wiface = args.wiface
|
||||
web_options.wport = args.wport
|
||||
web_options.wsingleuser = args.wsingleuser
|
||||
web_options.whtpasswd = args.whtpasswd
|
||||
web_options.process_web_options(parser)
|
||||
|
||||
server = process_options(parser, web_options, args)
|
||||
|
||||
Reference in New Issue
Block a user