handle uppercase hostname

This commit is contained in:
incoggnito 2022-05-13 15:50:18 +02:00 committed by GitHub
parent ec1edfbebc
commit 1df4f4dd13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,7 +253,7 @@ def vmaction(vmnode, vmid, vmtype):
confignode['virt-viewer'] = {}
for key,value in spiceconfig.items():
if key == 'proxy':
val = value[7:]
val = value[7:].lower()
if val in G.spiceproxy_conv:
confignode['virt-viewer'][key] = f'http://{G.spiceproxy_conv[val]}'
else: