AttributeError: module 'mitm.crypto' has no attribute 'mitm_ssl_context'
Closed this issue · 1 comments
Alphexoed commented
Code (from examples):
from mitm import MITM, protocol, middleware, crypto
mitm = MITM(
host="127.0.0.1",
port=8888,
protocols=[protocol.HTTP],
middlewares=[middleware.Log],
buffer_size=8192,
timeout=5,
ssl_context=crypto.mitm_ssl_context(),
start=False,
)
mitm.start()
Error:
C:\Users\Slimakoi\Desktop\Coding>main.py
Traceback (most recent call last):
File "C:\Users\Slimakoi\Desktop\Coding\main.py", line 10, in <module>
ssl_context=crypto.mitm_ssl_context(),
AttributeError: module 'mitm.crypto' has no attribute 'mitm_ssl_context'
synchronizing commented
Fixed it it ec3adeb, thanks for pointing it out!