mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 22:05:48 +08:00
18 lines
307 B
Ruby
18 lines
307 B
Ruby
|
# 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
|
||
|
|
||
|
private
|
||
|
|
||
|
def translation_key
|
||
|
"dashboard.host_names_warning"
|
||
|
end
|
||
|
end
|