lib/spf/model.rb in spf-0.0.17 vs lib/spf/model.rb in spf-0.0.18

- old
+ new

@@ -431,10 +431,11 @@ self.parse_ipv4_network(required) @ip_netblocks << @ip_network end def params + return nil unless @ip_network result = @ip_network.to_addr if @ip_network.pfxlen != @default_ipv4_prefix_length result += "/#{@ip_network.pfxlen}" end return result @@ -458,9 +459,10 @@ self.parse_ipv6_network(required) @ip_netblocks << @ip_network end def params + return nil unless @ip_network params = @ip_network.to_addr params += '/' + @ip_network.pfxlen.to_s if @ip_network.pfxlen != self.default_ipv6_prefix_length return params end