lib/certmeister/policy/fcrdns.rb in certmeister-0.3.0 vs lib/certmeister/policy/fcrdns.rb in certmeister-0.3.1

- old
+ new

@@ -12,10 +12,10 @@ if not request[:cn] Certmeister::Policy::Response.new(false, "missing cn") elsif not request[:ip] Certmeister::Policy::Response.new(false, "missing ip") elsif not fcrdns_names(request[:ip]).include?(request[:cn]) - Certmeister::Policy::Response.new(false, "cn in unknown domain") + Certmeister::Policy::Response.new(false, "cn does not match fcrdns") else Certmeister::Policy::Response.new(true, nil) end rescue Resolv::ResolvError => e Certmeister::Policy::Response.new(false, "DNS error (#{e.message})")