mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Pass VNC server name in options.
This commit is contained in:
@@ -5,7 +5,9 @@ var debug = require('debug')('vnc:server')
|
||||
|
||||
var VncConnection = require('./connection')
|
||||
|
||||
function VncServer(server) {
|
||||
function VncServer(server, options) {
|
||||
this.options = options
|
||||
|
||||
this._bound = {
|
||||
_listeningListener: this._listeningListener.bind(this)
|
||||
, _connectionListener: this._connectionListener.bind(this)
|
||||
@@ -36,7 +38,7 @@ VncServer.prototype._listeningListener = function() {
|
||||
|
||||
VncServer.prototype._connectionListener = function(conn) {
|
||||
debug('connection', conn.remoteAddress, conn.remotePort)
|
||||
this.emit('connection', new VncConnection(conn))
|
||||
this.emit('connection', new VncConnection(conn, this.options))
|
||||
}
|
||||
|
||||
VncServer.prototype._closeListener = function() {
|
||||
|
||||
Reference in New Issue
Block a user