From 5ef186b1e0800b1f246293aa0aa646fd15e0b438 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 5 Jun 2014 11:10:28 -0300 Subject: [PATCH] community-hub: disable address resolv to avoid problems with proxy --- plugins/community_hub/twitter/stream.rb | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/plugins/community_hub/twitter/stream.rb b/plugins/community_hub/twitter/stream.rb index 87e8aa5..3f8e294 100644 --- a/plugins/community_hub/twitter/stream.rb +++ b/plugins/community_hub/twitter/stream.rb @@ -2,6 +2,13 @@ require 'rubygems' require 'twitter' require 'iconv' +#disable address resolv to avoid problems with proxy +class Resolv + def self.getaddress(host) + host + end +end + #Filters non-UTF8 octets def UTF8Filter(string) ic = Iconv.new('UTF-8//IGNORE', 'UTF-8') -- libgit2 0.21.2