Commit 5ef186b1e0800b1f246293aa0aa646fd15e0b438
1 parent
48d97746
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
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,6 +2,13 @@ require 'rubygems' | ||
2 | require 'twitter' | 2 | require 'twitter' |
3 | require 'iconv' | 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 | #Filters non-UTF8 octets | 12 | #Filters non-UTF8 octets |
6 | def UTF8Filter(string) | 13 | def UTF8Filter(string) |
7 | ic = Iconv.new('UTF-8//IGNORE', 'UTF-8') | 14 | ic = Iconv.new('UTF-8//IGNORE', 'UTF-8') |