It seems that proxy field not handled at all during server connections.
url = 'https://' + addr + ':' + port + '/1.0'
server_name = ''
try:
results = requests.get(url, verify=sslVerify, cert=(clientCrt, clientKey))
results = results.json()
if 'environment' in results['metadata'].keys():
if 'server_name' in results['metadata']['environment'].keys():
server_name = results['metadata']['environment']['server_name']
if not server_name:
return jsonify({"status":"", "error": 'Unable to retrieve server information. The lxconsole certificate may not be trusted by this server.'})
except requests.exceptions.RequestException as err:
return jsonify({"status":"", "error": str(err)})
It seems that proxy field not handled at all during server connections.