Skip to content

Commit c1997e3

Browse files
author
HD Moore
committed
Merge pull request rapid7#1296 from wchen-r7/normalize_optport
[FixRM: rapid7#7535] Missing normalize() in OptPort
2 parents 0b130e4 + 8c04df4 commit c1997e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/msf/core/option_container.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@ def type
302302
return 'port'
303303
end
304304

305+
def normalize(value)
306+
value.to_i
307+
end
308+
305309
def valid?(value)
306310
return false if empty_required_value?(value)
307311

0 commit comments

Comments
 (0)