1
0
mirror of https://github.com/amitbet/vncproxy.git synced 2025-05-04 21:56:27 +00:00

added back the serverUpdater listener

This commit is contained in:
amit bezalel 2017-07-21 16:51:08 +03:00
parent baf477d8d5
commit 0d44ad3ca5

View File

@ -100,11 +100,11 @@ func (vp *VncProxy) newServerConnHandler(cfg *server.ServerConfig, sconn *server
// gets the bytes from the actual vnc server on the env (client part of the proxy)
// and writes them through the server socket to the vnc-client
// serverUpdater := &ServerUpdater{sconn}
// cconn.Listeners.AddListener(serverUpdater)
serverUpdater := &ServerUpdater{sconn}
cconn.Listeners.AddListener(serverUpdater)
serverMsgRepeater := &listeners.WriteTo{sconn, "vnc-client-bound"}
cconn.Listeners.AddListener(serverMsgRepeater)
//serverMsgRepeater := &listeners.WriteTo{sconn, "vnc-client-bound"}
//cconn.Listeners.AddListener(serverMsgRepeater)
// gets the messages from the server part (from vnc-client),
// and write through the client to the actual vnc-server