Commit 842e0f06 authored by Alex Buijs's avatar Alex Buijs

Add hostname validation

parent d19f8fcc
......@@ -61,6 +61,7 @@ module EE
validates :snowplow_collector_hostname,
presence: true,
hostname: true,
if: :snowplow_enabled
validates :geo_node_allowed_ips, length: { maximum: 255 }, presence: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment