mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Don't add clients to the broadcast set until they're authenticated. Note
that actual, real auth is not checked yet.
This commit is contained in:
parent
bff4b7bafe
commit
5cc27a86ad
2 changed files with 6 additions and 3 deletions
|
@ -110,9 +110,11 @@ module.exports = syrup.serial()
|
|||
connState.sentFrameTime = connState.lastFrameTime
|
||||
}
|
||||
|
||||
screenStream.broadcastSet.insert(id, {
|
||||
onStart: vncStartListener
|
||||
, onFrame: vncFrameListener
|
||||
conn.on('authenticated', function() {
|
||||
screenStream.broadcastSet.insert(id, {
|
||||
onStart: vncStartListener
|
||||
, onFrame: vncFrameListener
|
||||
})
|
||||
})
|
||||
|
||||
conn.on('fbupdaterequest', function() {
|
||||
|
|
|
@ -253,6 +253,7 @@ VncConnection.prototype._read = function() {
|
|||
}
|
||||
debug('client security', this._clientSecurity)
|
||||
this._writeSecurityResult(VncConnection.SECURITYRESULT_OK)
|
||||
this.emit('authenticated')
|
||||
this._changeState(VncConnection.STATE_NEED_CLIENT_INIT)
|
||||
}
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue