mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-07 10:40:09 +00: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:
parent
21a03d56b5
commit
40f0193dda
@ -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
|
This example shows how to build a proxy based on mitmproxy's Flow
|
||||||
primitives.
|
primitives.
|
||||||
|
@ -883,21 +883,6 @@ def mitmweb():
|
|||||||
action="store_true", dest="wdebug",
|
action="store_true", dest="wdebug",
|
||||||
help="Turn on mitmweb debugging"
|
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)
|
common_options(parser)
|
||||||
group = parser.add_argument_group(
|
group = parser.add_argument_group(
|
||||||
|
@ -135,8 +135,6 @@ def mitmweb(args=None): # pragma: no cover
|
|||||||
web_options.wdebug = args.wdebug
|
web_options.wdebug = args.wdebug
|
||||||
web_options.wiface = args.wiface
|
web_options.wiface = args.wiface
|
||||||
web_options.wport = args.wport
|
web_options.wport = args.wport
|
||||||
web_options.wsingleuser = args.wsingleuser
|
|
||||||
web_options.whtpasswd = args.whtpasswd
|
|
||||||
web_options.process_web_options(parser)
|
web_options.process_web_options(parser)
|
||||||
|
|
||||||
server = process_options(parser, web_options, args)
|
server = process_options(parser, web_options, args)
|
||||||
|
Loading…
Reference in New Issue
Block a user