     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

        port: 8080
        host: '0.0.0.0'
        timeout: 2000

    connections: {}


        cn?.send res

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

