summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--econproto.h2
-rw-r--r--econproxy.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/econproto.h b/econproto.h
index 02a032b..57f4e4a 100644
--- a/econproto.h
+++ b/econproto.h
@@ -161,7 +161,7 @@ typedef struct {
uint8_t gateAddress[ECON_IPADDRESS_SIZE];
uint8_t unknown_field_1; /* value: 0x02 */
uint8_t unknown_field_2; /* value: 0x01 */
- uint8_t unknown_field_3; /* value: 0x03 */
+ uint8_t version; /* value: 0x03 */
rfbServerInitMsg vnesInitMsg;
} e_command_reqconnect;
diff --git a/econproxy.c b/econproxy.c
index a5a0c85..bd1c92d 100644
--- a/econproxy.c
+++ b/econproxy.c
@@ -165,7 +165,8 @@ ep_reqconnect(struct ep *ep)
* Windows client uses 0x02 and 0x01, so we do too. */
ep->epkt.cmd.command.reqconnect.unknown_field_1 = 0x02;
ep->epkt.cmd.command.reqconnect.unknown_field_2 = 0x01;
- ep->epkt.cmd.command.reqconnect.unknown_field_3 = 0x03;
+
+ ep->epkt.cmd.command.reqconnect.version = 0x03;
#if 0
memcpy(ep->epkt.cmd.command.reqconnect.EncPassword, "82091965",
ECON_ENCRYPTION_MAXLEN);