mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +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.options = None
|
||||||
self._lock = asyncio.Lock()
|
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):
|
def running(self):
|
||||||
self.options = ctx.options
|
self.options = ctx.options
|
||||||
self.event_queue = ctx.master.event_queue
|
self.event_queue = ctx.master.event_queue
|
||||||
|
Loading…
Reference in New Issue
Block a user