Skip to content

Commit 7eeb880

Browse files
committed
Do minor code cleanup
1 parent 8ea0953 commit 7eeb880

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

lib/rex/proto/rfb/client.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@ def handshake
6161

6262
@minver = $2.to_i
6363

64-
# Forces client version 3 to be used. This adds support
65-
# for version 4 servers.
66-
# It may be necessary to hardcode a miniver as well
67-
# to do: add support for Version 4. Version 4 client
68-
# adds additional information to the packet regarding
69-
# supported authentication types.
64+
# Forces version 3 to be used. This adds support for version 4 servers.
65+
# It may be necessary to hardcode minver as well.
66+
# TODO: Add support for Version 4.
67+
# Version 4 adds additional information to the packet regarding supported
68+
# authentication types.
7069
our_ver = "RFB %03d.%03d\n" % [3, @minver]
7170
@sock.put(our_ver)
7271

lib/rex/proto/rfb/constants.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ module RFB
1919
DefaultPort = 5900
2020

2121
# Version information
22-
# Created array and added support for version 4. aux/scanner/vnc/vnc_login
23-
# was confirmed to work with version 004.001
24-
MajorVersions = [3,4]
22+
MajorVersions = [3, 4]
2523
# NOTE: We will emulate whatever minor version the server reports.
2624

2725
# Security types

0 commit comments

Comments
 (0)