You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to use the no_proxy option to bypass the proxy, it didn't delivered it correctly.
It doesn't appear in the initialize function in the client.rb
# Initializes a new Client object
#
# @param options [Hash]
# @return [ZabbixApi::Client]
def initialize(options = {})
@options = options
if !ENV['http_proxy'].nil? && options[:no_proxy] != true
@proxy_uri = URI.parse(ENV['http_proxy'])
@proxy_host = @proxy_uri.host
@proxy_port = @proxy_uri.port
@proxy_user, @proxy_pass = @proxy_uri.userinfo.split(/:/) if @proxy_uri.userinfo
end
unless api_version =~ /(2\.4|3\.[02])\.\d+/
raise ApiError.new("Zabbix API version: #{api_version} is not support by this version of zabbixapi")
end
@auth_hash = auth
end
The text was updated successfully, but these errors were encountered:
Net::HTTP will automatically create a proxy from the http_proxy environment variable if it is present. To disable use of http_proxy, pass nil for the proxy address.
When I tried to use the no_proxy option to bypass the proxy, it didn't delivered it correctly.
It doesn't appear in the initialize function in the client.rb
The text was updated successfully, but these errors were encountered: