bugfix for client-proxy handshake