Packet.valid_hostname? should be a class method

MS-2855/keylogger-mettle-extension
RageLtMan 2016-03-02 02:52:36 -05:00
parent a555ee716e
commit d64962994c
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module Packet
# @param subject [String] Subject name to check
#
# @return [TrueClass,FalseClass] Disposition on name match
def valid_hostname?(subject = '')
def self.valid_hostname?(subject = '')
!subject.match(Rex::Proto::DNS::Constants::MATCH_HOSTNAME).nil?
end