# File lib/scrubyt/core/navigation/fetch_action.rb, line 165 def self.parse_and_set_proxy(proxy) if proxy.downcase == 'localhost' @@host = 'localhost' @@port = proxy.split(':').last else parts = proxy.split(':') @@port = parts.delete_at(-1) @@host = parts.join(':') if (@@host == nil || @@port == nil)# !@@host =~ /^http/) puts "Invalid proxy specification..." puts "neither host nor port can be nil!" exit end end Scrubyt.log :ACTION, "Setting proxy: host=<#{@@host}>, port=<#{@@port}>" @@agent.set_proxy(@@host, @@port) end