From be354c660d9c3ee837a547357453591e217ea342 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 2 Nov 2020 11:46:49 -0600 Subject: Allow local domain --- app/helpers/domain_control_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/helpers/domain_control_helper.rb b/app/helpers/domain_control_helper.rb index d061de492..cd51a8b7e 100644 --- a/app/helpers/domain_control_helper.rb +++ b/app/helpers/domain_control_helper.rb @@ -12,7 +12,7 @@ module DomainControlHelper end end - !DomainAllow.allowed?(domain) || DomainBlock.blocked?(domain) + domain != Rails.configuration.x.local_domain && (!DomainAllow.allowed?(domain) || DomainBlock.blocked?(domain)) rescue Addressable::URI::InvalidURIError, IDN::Idna::IdnaError nil end -- cgit