I need TLS
This commit is contained in:
parent
1856ef7f5e
commit
c89d3ad1d2
1 changed files with 5 additions and 1 deletions
6
main.py
6
main.py
|
@ -21,8 +21,12 @@ config.read(path+'/config.ini')
|
||||||
api_hostname = config.get('Re2o', 'hostname')
|
api_hostname = config.get('Re2o', 'hostname')
|
||||||
api_password = config.get('Re2o', 'password')
|
api_password = config.get('Re2o', 'password')
|
||||||
api_username = config.get('Re2o', 'username')
|
api_username = config.get('Re2o', 'username')
|
||||||
|
if 'use_tls' in config['Re2o']:
|
||||||
|
use_tls = config.get('Re2o', 'use_tls')
|
||||||
|
else:
|
||||||
|
us_tls = False
|
||||||
|
|
||||||
api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=False)
|
api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=use_tls)
|
||||||
|
|
||||||
client_hostname = socket.gethostname().split('.', 1)[0]
|
client_hostname = socket.gethostname().split('.', 1)[0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue