Commit 2f87a4e03b3252b632c613579dfafcb8e5f9bbf2

Authored by Victor Costa
1 parent 0988018c
Exists in master

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

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
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')
... ...