'Deny SOCKS5 request
@param Request request: the request to deny'

def deny_request(self, request, reason):

    self.state = ConnectionState.CONNECTED
    response = conversion.encode_reply(5, conversion.REP_COMMAND_NOT_SUPPORTED, 0, conversion.ADDRESS_TYPE_IPV4, '0.0.0.0', 0)
    self.transport.write(response)
    self._logger.error(('DENYING    SOCKS5    request,    reason:    %s' % reason))
