I need TLS

master
Hugo Levy-Falk 4 years ago committed by root
parent 1856ef7f5e
commit c89d3ad1d2

@ -21,8 +21,12 @@ config.read(path+'/config.ini')
api_hostname = config.get('Re2o', 'hostname')
api_password = config.get('Re2o', 'password')
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]

Loading…
Cancel
Save