Permalink
Browse files

fix parsing restrictions

  • Loading branch information...
1 parent 0c93a88 commit 868e471e37ad8d42dd7428e5afd2b2e0e00379f6 @niklas niklas committed Mar 10, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/muninator.rb
View
@@ -154,12 +154,13 @@ def version
end
def restrict_to(what)
+ @restrict ||= []
if what == :localhost
- @restrict = [ '::1', 'fe80::1', '127.0.0.1' ]
+ @restrict += [ '::1', 'fe80::1', '127.0.0.1' ]
elsif what.is_a? Array
@restrict += what
elsif what.is_a? String
- @restruct += what
+ @restrict += what
end
end

0 comments on commit 868e471

Please sign in to comment.