Kenji Okimoto
null+****@clear*****
Mon Jun 26 18:21:34 JST 2017
Kenji Okimoto 2017-06-26 18:21:34 +0900 (Mon, 26 Jun 2017) New Revision: ad476fcd1c0d02eda2807e17351f37b41a450b04 https://github.com/milter-manager/milter-manager/commit/ad476fcd1c0d02eda2807e17351f37b41a450b04 Merged 8a5f2c2: Merge pull request #126 from milter-manager/auto-detect-rspamd-proxy Message: binding ruby: Stop using dig method Because we are supporting Ruby2.2 Modified files: binding/ruby/lib/milter/manager/rspamd-proxy-detector.rb Modified: binding/ruby/lib/milter/manager/rspamd-proxy-detector.rb (+1 -1) =================================================================== --- binding/ruby/lib/milter/manager/rspamd-proxy-detector.rb 2017-06-26 17:21:37 +0900 (cf29f57) +++ binding/ruby/lib/milter/manager/rspamd-proxy-detector.rb 2017-06-26 18:21:34 +0900 (f2cf68c) @@ -13,7 +13,7 @@ module Milter::Manager workers = config["worker"] return unless workers rspamd_proxy = workers.detect do |worker| - worker.key?("rspamd_proxy") && worker.dig("rspamd_proxy", "milter") + worker.key?("rspamd_proxy") && worker["rspamd_proxy"]["milter"] end host, port = rspamd_proxy["bind_socket"].split(":", 2) if host == "*" -------------- next part -------------- An HTML attachment was scrubbed... 下載