Update websocketproxy.py
This commit is contained in:
parent
a02143ce85
commit
043df1f8b8
|
|
@ -186,7 +186,13 @@ Traffic Legend:
|
||||||
if result_pair is not None:
|
if result_pair is not None:
|
||||||
return result_pair
|
return result_pair
|
||||||
else:
|
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):
|
def do_proxy(self, target):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue