From 043df1f8b8e81b6c052710f0dbb83afb356b2de2 Mon Sep 17 00:00:00 2001 From: IngenieroRicardo <138132387+IngenieroRicardo@users.noreply.github.com> Date: Fri, 15 Aug 2025 13:16:19 -0600 Subject: [PATCH] Update websocketproxy.py --- websockify/websocketproxy.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/websockify/websocketproxy.py b/websockify/websocketproxy.py index 4410e8e..58363a0 100644 --- a/websockify/websocketproxy.py +++ b/websockify/websocketproxy.py @@ -186,7 +186,13 @@ Traffic Legend: if result_pair is not None: return result_pair else: - raise self.server.EClose("Token '%s' not found" % token) + #agregado por Ricardo Valladares para aceptar: http://10.0.1.7:6080/vnc.html?path=?token=192.100.1.100:5900 + #asi como tambien: http://10.0.1.7:6080/vnc.html?path=?token=servidor + if ":" in token: + partes = token.split(":", 1) + return partes[0].strip(), partes[1].strip() + else: + raise self.server.EClose("Token '%s' not found" % token) def do_proxy(self, target): """