Skip to content

Commit

Permalink
Fix #541
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 24, 2016
1 parent 2a70e0f commit a770b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/forms/plugin_settings_validation/ssh_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module SshConfig
end

validates :gitolite_user, presence: true
validates :gitolite_server_host, presence: true, format: { with: Resolv::IPv4::Regex }
validates :gitolite_server_host, presence: true
validates :gitolite_server_port, presence: true, numericality: { only_integer: true, greater_than_or_equal_to: 1, less_than_or_equal_to: 65_536 }
validates :gitolite_ssh_private_key, presence: true
validates :gitolite_ssh_public_key, presence: true
Expand Down

0 comments on commit a770b78

Please sign in to comment.