spf 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spf/model.rb +1 -3
- data/lib/spf/version.rb +1 -1
- data/spf.gemspec +1 -1
- metadata +1 -1
data/lib/spf/model.rb
CHANGED
@@ -166,8 +166,8 @@ class SPF::Term
|
|
166
166
|
unless bits and bits >= 0 and bits <= 128 and $1 !~ /^0./
|
167
167
|
raise SPF::TermIPv6PrefixLengthExpectedError.new(
|
168
168
|
"Invalid IPv6 prefix length encountered in '#{@text}'")
|
169
|
-
@ipv6_prefix_length = bits
|
170
169
|
end
|
170
|
+
@ipv6_prefix_length = bits
|
171
171
|
elsif required
|
172
172
|
raise SPF::TermIPvPrefixLengthExpected.new(
|
173
173
|
"Missing required IPv6 prefix length in '#{@text}'")
|
@@ -179,8 +179,6 @@ class SPF::Term
|
|
179
179
|
def parse_ipv6_network(required = false)
|
180
180
|
self.parse_ipv6_address(required)
|
181
181
|
self.parse_ipv6_prefix_length
|
182
|
-
# XXX we shouldn't need to check for this.
|
183
|
-
@ipv6_prefix_length = self.default_ipv6_prefix_length unless @ipv6_prefix_length
|
184
182
|
@ip_network = IP.new("#{@ip_address}/#{@ipv6_prefix_length}")
|
185
183
|
end
|
186
184
|
|
data/lib/spf/version.rb
CHANGED
data/spf.gemspec
CHANGED