diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-11-02 11:46:49 -0600 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-11-02 14:03:21 -0600 |
commit | be354c660d9c3ee837a547357453591e217ea342 (patch) | |
tree | 8e172ef88c765b10e36f969b48881c143f7fc5ac /app/helpers | |
parent | ff1125404eec13cdc8aab7e99f76767428794a89 (diff) |
Allow local domain
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/domain_control_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |