diff options
author | Matthias H <apoc@sixserv.org> | 2015-01-11 09:20:09 +0100 |
---|---|---|
committer | Matthias H <apoc@sixserv.org> | 2015-01-11 09:20:09 +0100 |
commit | afd4359a6d599c58c05a9f795bbe33cda7909a50 (patch) | |
tree | 741194e3c68970b86b0f07377e7ca598976d793f /lib/rbot | |
parent | f94c7000d10f6d58f5b4e35d091f2422241cb2b3 (diff) |
agent: remove proxy opt-out for plugins
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/core/utils/agent.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/core/utils/agent.rb b/lib/rbot/core/utils/agent.rb index 8949a5c8..2140879d 100644 --- a/lib/rbot/core/utils/agent.rb +++ b/lib/rbot/core/utils/agent.rb @@ -52,13 +52,13 @@ class AgentFactory end # Returns a new, unique instance of Mechanize. - def create(noproxy=false) + def create agent = Mechanize.new agent.redirection_limit = @bot.config['agent.max_redir'] if not @bot.config['agent.ssl_verify'] agent.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE end - if @bot.config['agent.proxy_use'] and not noproxy + if @bot.config['agent.proxy_use'] agent.set_proxy( @bot.config['agent.proxy_host'], @bot.config['agent.proxy_port'], |