Skip to content

A platform for community discussion. Free, open, simple.

232 B
Raw Blame
# frozen_string_literal: true

class ProblemCheck::HostNames < ProblemCheck
  self.priority = "low"

  def call
    return no_problem if %w[localhost production.localhost].exclude?(Discourse.current_hostname)

    problem
  end
end