lib/ronin/network/network.rb in ronin-support-0.1.0.rc2 vs lib/ronin/network/network.rb in ronin-support-0.1.0.rc3
- old
+ new
@@ -17,18 +17,18 @@
# along with Ronin Support. If not, see <http://www.gnu.org/licenses/>.
#
require 'ronin/extensions/ip_addr'
-require 'uri'
+require 'uri/http'
require 'net/http'
module Ronin
#
# Network helper methods.
#
module Network
- IP_URL = URI('http://checkip.dyndns.org/')
+ IP_URL = URI.parse('http://checkip.dyndns.org/')
#
# Determines the current external IP Address.
#
# @return [String]