def valid?
    begin
      @host = Rex::Socket.getaddress(@host, true)
    rescue
      return false
    end
    @port.kind_of?(Integer) && @port >= 0 && @port <= 65535 && @timeout.kind_of?(Integer)
  end
def valid?
    begin
      @host = Rex::Socket.getaddress(@host, true)
    rescue
      return false
    end
    @port.kind_of?(Integer) && @port >= 0 && @port <= 65535 && @timeout.kind_of?(Integer)
  end
Initializes the scanner object
 @param host [String] IP address or hostname to scan
 @param port [Integer] Port number to scan, default: 443
 @param timeout [Integer] Timeout for connections, in seconds. default: 5
 @raise [StandardError] Raised when the configuration is invalid
 Checks whether the scanner option has a valid configuration
 @return [Boolean] True or False, the configuration is valid.