Rever to using Ssrf instead of SSRF

Ref: https://github.com/basecamp/fizzy/pull/1967#discussion_r2593750027
This commit is contained in:
Stanko K.R.
2025-12-06 11:04:55 +01:00
parent ffb357becf
commit 73c2b00211
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
module SSRFProtection
module SsrfProtection
extend self
DNS_RESOLUTION_TIMEOUT = 2
+1 -1
View File
@@ -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
-1
View File
@@ -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"