Commit 5ef186b1e0800b1f246293aa0aa646fd15e0b438

Authored by Victor Costa
1 parent 48d97746

community-hub: disable address resolv to avoid problems with proxy

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
plugins/community_hub/twitter/stream.rb
... ... @@ -2,6 +2,13 @@ require 'rubygems'
2 2 require 'twitter'
3 3 require 'iconv'
4 4  
  5 +#disable address resolv to avoid problems with proxy
  6 +class Resolv
  7 + def self.getaddress(host)
  8 + host
  9 + end
  10 +end
  11 +
5 12 #Filters non-UTF8 octets
6 13 def UTF8Filter(string)
7 14 ic = Iconv.new('UTF-8//IGNORE', 'UTF-8')
... ...