     message: (cn, data)->
         mes = null
         try mes = url.parse data, true
-        return if not mes or mes.protocol isnt 'ciph:'
+        return if not mes or mes.protocol isnt @options.protocol
 
-        if mes.host is 'tunnel'
+        if mes.host is @options.tunnel_name
             switch mes.pathname
                 when '/connect'
                     @connect cn, mes.query unless cn._tunnelled

        cn?.send res

    getUID: (prefix='')->
        hash = crypto.createHash('md5')
        hash.update _.uniqueId prefix + new Date().getTime()
        return hash.digest('hex').slice(0, 8)


        cn._tunnelled = clientId

        @disconnect cn, clientId
        @response cn, null, @options.tunnel_name, '/connected', client: clientId, exists: exists

    rename: (cn, q)->
        # Do nothing if no client parameter, or already exists or equal with current
