From 1df4f4dd1331369041acda6ed576f14b217bc3d7 Mon Sep 17 00:00:00 2001 From: incoggnito <44142874+incoggnito@users.noreply.github.com> Date: Fri, 13 May 2022 15:50:18 +0200 Subject: [PATCH 1/2] handle uppercase hostname --- vdiclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From 2efe5cd0e3ef25b078d176cd3648cd1c048a1ee5 Mon Sep 17 00:00:00 2001 From: incoggnito <44142874+incoggnito@users.noreply.github.com> Date: Fri, 13 May 2022 15:53:37 +0200 Subject: [PATCH 2/2] More documentation on proxy --- vdiclient.ini.example | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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