spf 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/spf/model.rb +2 -0
- data/lib/spf/version.rb +1 -1
- data/spf.gemspec +1 -1
- metadata +1 -1
data/lib/spf/model.rb
CHANGED
|
@@ -433,6 +433,7 @@ class SPF::Mech < SPF::Term
|
|
|
433
433
|
end
|
|
434
434
|
|
|
435
435
|
def params
|
|
436
|
+
return nil unless @ip_network
|
|
436
437
|
result = @ip_network.to_addr
|
|
437
438
|
if @ip_network.pfxlen != @default_ipv4_prefix_length
|
|
438
439
|
result += "/#{@ip_network.pfxlen}"
|
|
@@ -460,6 +461,7 @@ class SPF::Mech < SPF::Term
|
|
|
460
461
|
end
|
|
461
462
|
|
|
462
463
|
def params
|
|
464
|
+
return nil unless @ip_network
|
|
463
465
|
params = @ip_network.to_addr
|
|
464
466
|
params += '/' + @ip_network.pfxlen.to_s if
|
|
465
467
|
@ip_network.pfxlen != self.default_ipv6_prefix_length
|
data/lib/spf/version.rb
CHANGED
data/spf.gemspec
CHANGED