Skip to content

Commit

Permalink
Disabe safe_code.js when unlocker is false
Browse files Browse the repository at this point in the history
  • Loading branch information
shinkuan committed Feb 28, 2024
1 parent de3df00 commit 96c21a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mitm.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ async def start_proxy(host, port, enable_unlocker):
with_dumper=False,
)
master.addons.add(ClientWebSocket())
master.addons.add(ClientHTTP())
# if enable_unlocker:
from mhm.addons import WebSocketAddon as Unlocker
master.addons.add(Unlocker())
if enable_unlocker:
master.addons.add(ClientHTTP())
from mhm.addons import WebSocketAddon as Unlocker
master.addons.add(Unlocker())
await master.run()
return master

Expand Down

0 comments on commit 96c21a9

Please sign in to comment.