fixed passing server init resolution in proxy code

This commit is contained in:
amit bezalel
2017-07-20 16:37:19 +03:00
parent 2d87ae5773
commit 952cd69365
6 changed files with 295 additions and 365 deletions

View File

@@ -6,6 +6,7 @@ import (
"vncproxy/common"
"io"
"vncproxy/logger"
)
const ProtoVersionLength = 12
@@ -134,7 +135,7 @@ func ServerServerInitHandler(cfg *ServerConfig, c *ServerConn) error {
NameLength: uint32(len(cfg.DesktopName)),
NameText: []byte(cfg.DesktopName),
}
logger.Infof("Server.ServerServerInitHandler initMessage: %v", srvInit)
if err := binary.Write(c, binary.BigEndian, srvInit.FBWidth); err != nil {
return err
}