proxy_config.py 521 B

123456789101112131415161718
  1. import os
  2. # This can also be replaced with another IP address.
  3. USE_SSL = True
  4. REMOTE_HOST = "localhost"
  5. REMOTE_PORT = 443
  6. if os.getenv('MITM_REMOTE_HOST') != None:
  7. REMOTE_HOST = os.getenv('MITM_REMOTE_HOST')
  8. if os.getenv('MITM_REMOTE_PORT') != None:
  9. REMOTE_PORT = int(os.getenv('MITM_REMOTE_PORT'))
  10. if os.getenv('MITM_USE_SSL') != None:
  11. USE_SSL = bool(os.getenv('MITM_USE_SSL'))
  12. print('MITM Remote Host: ' + REMOTE_HOST)
  13. print('MITM Remote Port: ' + str(REMOTE_PORT))
  14. print('MITM Use SSL ' + str(USE_SSL))