DEV: Force ActiveRecord reading role on Redis failover take 2.

DEV: Force ActiveRecord reading role on Redis failover take 2.

diff --git a/config/initializers/002-rails_failover.rb b/config/initializers/002-rails_failover.rb
index f471c72..e4a8070 100644
--- a/config/initializers/002-rails_failover.rb
+++ b/config/initializers/002-rails_failover.rb
@@ -56,8 +56,8 @@ if defined?(RailsFailover::ActiveRecord)
       Discourse::PG_READONLY_MODE_KEY,
       Discourse::PG_FORCE_READONLY_MODE_KEY
     ) || (
-      GlobalSetting.redis_config[:replica_port] &&
-      Discourse.redis.connection[:port] == GlobalSetting.redis_config[:replica_port]
+      GlobalSetting.redis_config[:replica_host] &&
+      Discourse.redis.connection[:host] == GlobalSetting.redis_config[:replica_host]
     )
   rescue => e
     if e.is_a?(Redis::CannotConnectError)

GitHub sha: 383537a2