spf 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spf/model.rb +2 -2
- data/lib/spf/version.rb +1 -1
- data/spf.gemspec +1 -1
- metadata +1 -1
data/lib/spf/model.rb
CHANGED
@@ -165,7 +165,7 @@ class SPF::Term
|
|
165
165
|
@ip_address = $1
|
166
166
|
elsif required
|
167
167
|
error(SPF::TermIPv6AddressExpected.new(
|
168
|
-
"Missing required IPv6 address in '#{@text}'"))
|
168
|
+
"Missing or invalid required IPv6 address in '#{@text}'"))
|
169
169
|
end
|
170
170
|
@ip_address = @parse_text.dup unless @ip_address
|
171
171
|
end
|
@@ -474,7 +474,7 @@ class SPF::Mech < SPF::Term
|
|
474
474
|
|
475
475
|
def params
|
476
476
|
return nil unless @ip_network
|
477
|
-
|
477
|
+
return @ip_network if String === @ip_network
|
478
478
|
params = @ip_network.to_addr
|
479
479
|
params += '/' + @ip_network.pfxlen.to_s if
|
480
480
|
@ip_network.pfxlen != self.default_ipv6_prefix_length
|
data/lib/spf/version.rb
CHANGED
data/spf.gemspec
CHANGED