diff --git a/vdiclient.ini.example b/vdiclient.ini.example index 44a8780..7617c0d 100644 --- a/vdiclient.ini.example +++ b/vdiclient.ini.example @@ -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 \ No newline at end of file +# 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 diff --git a/vdiclient.py b/vdiclient.py index 3934c11..3c904a8 100644 --- a/vdiclient.py +++ b/vdiclient.py @@ -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: