diff --git a/app/models/ssrf_protection.rb b/app/models/ssrf_protection.rb index e43455b39..6e7c49c30 100644 --- a/app/models/ssrf_protection.rb +++ b/app/models/ssrf_protection.rb @@ -1,4 +1,4 @@ -module SSRFProtection +module SsrfProtection extend self DNS_RESOLUTION_TIMEOUT = 2 diff --git a/app/models/webhook/delivery.rb b/app/models/webhook/delivery.rb index 79db20b90..c5dab1497 100644 --- a/app/models/webhook/delivery.rb +++ b/app/models/webhook/delivery.rb @@ -70,7 +70,7 @@ class Webhook::Delivery < ApplicationRecord def resolved_ip return @resolved_ip if defined?(@resolved_ip) - @resolved_ip = SSRFProtection.resolve_public_ip(uri.host) + @resolved_ip = SsrfProtection.resolve_public_ip(uri.host) end def uri diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 7e49acd7e..62ffe294f 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -13,7 +13,6 @@ # These inflection rules are supported but not enabled by default: ActiveSupport::Inflector.inflections(:en) do |inflect| inflect.acronym "SQLite" - inflect.acronym "SSRF" inflect.singular "quotas", "quota" inflect.plural "quota", "quotas"