Merge pull request #16 from incoggnito/main

Uppercase hostname and proxy documentation
This commit is contained in:
joshpatten 2022-05-13 10:26:26 -05:00 committed by GitHub
commit d4d6809527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -34,4 +34,6 @@ pve1.example.com = 8006
[SpiceProxyRedirect]
# The Spice Proxy provided by the Proxmox API may need to have it's host/port rewritten
# These rewrite rules are written `IP:port = IP:port`
pve1.example.com:3128 = 123.123.123.123:6000
# 1. Use the inidebug and read the current proxy=pve1.example.com:3128
# 2. Add your proxmox ip to the right side e.g. 123.123.123.123:6000
pve1.example.com:3128 = 123.123.123.123:6000

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: