proxy_config.py 538 Bytes
Newer Older
1
2
import os

Jaida Wu's avatar
Jaida Wu committed
3
# This can also be replaced with another IP address.
4
USE_SSL = True
5
6
7
8
9
10
11
12
13
14
15
16
17
REMOTE_HOST = "localhost"
REMOTE_PORT = 443

if os.getenv('MITM_REMOTE_HOST') != None:
    REMOTE_HOST = os.getenv('MITM_REMOTE_HOST')
if os.getenv('MITM_REMOTE_PORT') != None:
    REMOTE_PORT = int(os.getenv('MITM_REMOTE_PORT'))
if os.getenv('MITM_USE_SSL') != None:
    USE_SSL = bool(os.getenv('MITM_USE_SSL'))

print('MITM Remote Host: ' + REMOTE_HOST)
print('MITM Remote Port: ' + str(REMOTE_PORT))
print('MITM Use SSL ' + str(USE_SSL))