From 73c2b002115cba6be98972138b26147b6b693bd0 Mon Sep 17 00:00:00 2001 From: "Stanko K.R." Date: Sat, 6 Dec 2025 11:04:55 +0100 Subject: [PATCH] Rever to using Ssrf instead of SSRF Ref: https://github.com/basecamp/fizzy/pull/1967#discussion_r2593750027 --- app/models/ssrf_protection.rb | 2 +- app/models/webhook/delivery.rb | 2 +- config/initializers/inflections.rb | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) 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"