Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Fix port data type assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Claudius committed Jun 8, 2017
1 parent 2470c6a commit 2f62966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ssh_scan/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize(ip, port, timeout = 3)
@ip = ip
@timeout = timeout

@port = port
@port = port.to_i
@client_banner = SSHScan::Constants::DEFAULT_CLIENT_BANNER
@server_banner = nil
@kex_init_raw = SSHScan::Constants::DEFAULT_KEY_INIT.to_binary_s
Expand Down
2 changes: 1 addition & 1 deletion lib/ssh_scan/scan_engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def scan_target(socket, opts)
timeout = opts["timeout"]

result = SSHScan::Result.new()
result.port = port
result.port = port.to_i

# Start the scan timer
result.set_start_time
Expand Down

0 comments on commit 2f62966

Please sign in to comment.