Closed liquidpele closed 1 year ago
What server is this running against? What string is the server returning? This seems like the server is not following the vnc protocol so I'd like to better understand if this is the right fix to accept.
So, we're using this as an app probe to determine if the port is actually vnc during a host network check, and the server this happened on vanished already. I can see if it returns and try to get that info for you, but I can't promise it will. That's why my PR is mostly just accounting for the reference before assignment error currently, with a log line to get that info. I'll let you know if I can dig up more for you.
Got it, it sounds like you connected to a server but it wasn't speaking VNC protocol. If that is the case, then I think the issue is that the exception raised is UnboundLocalError rather than cleanly handling the error with a more descriptive exception.
This PR no longer applies and is no longer necessary since the RFB version parsing and handling was rewritten by bc93eb97.
Fixes this error:
Our version is a bit outdated but the issue still exists in main.