• Joel Martin's avatar
    proxy: Issue #14: detect and allow wss:// from Safari. · 7e63919e
    Joel Martin authored
    Addresses this issue:
    http://github.com/kanaka/noVNC/issues#issue/14
    
    Safari starts with '\x80' rather than '\x16' like Chrome and Firefox
    and having PROTOCOL_TLSv1 doesn't work with Safari. But just removing
    the ssl_version allows things to work with Safari wss:// connections.
    
    Also, if the handshake (after SSL wrapping) is null then terminate the
    connection. This probably means the certificate was refused by the
    client. Unfortunately Safari (the version I have) doesn't cleanly
    shutdown WebSockets connections until the page is reloaded (even if
    the object is no longer referenced).
    7e63919e
websocket.py 6.69 KB