Skip to content
Browse files

Add location info into network framework debugging

  • Loading branch information...
1 parent 3062472 commit d24f477bff91d41976c253e6562a4bda1586318f @ErebusBat committed Jul 11, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 framework/network.rb
View
7 framework/network.rb
@@ -129,4 +129,11 @@ def self.ip_matches_pattern ip, pattern
Network.ips.each do |ip|
puts " #{ip}"
end
+
+ locations = %w[127.0.0.* 192.168.0.* 192.168.1.* 192.168.85.* 10.0.0.* 10.0.1.* 10.8.0.*]
+ puts %Q{
+ Location\n}
+ locations.each do |net|
+ puts " %15s: #{Network.on_network net}" % net
+ end
end

0 comments on commit d24f477

Please sign in to comment.
Something went wrong with that request. Please try again.