mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
add connection_strategy option
This commit is contained in:
parent
8a66217daa
commit
3efcba777f
@ -58,6 +58,13 @@ class Proxyserver:
|
||||
self.options = None
|
||||
self._lock = asyncio.Lock()
|
||||
|
||||
def load(self, loader):
|
||||
loader.add_option(
|
||||
"connection_strategy", str, "eager",
|
||||
"Determine when server connections should be established.",
|
||||
choices=("eager", "lazy")
|
||||
)
|
||||
|
||||
def running(self):
|
||||
self.options = ctx.options
|
||||
self.event_queue = ctx.master.event_queue
|
||||
|
Loading…
Reference in New Issue
Block a user