lib/zabbixapi/client.rb in zabbixapi-3.2.1 vs lib/zabbixapi/client.rb in zabbixapi-4.0.0

- old
+ new

@@ -49,10 +49,10 @@ @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+/ + unless api_version =~ /(2\.4|3\.[024]|4\.0)\.\d+/ raise ApiError.new("Zabbix API version: #{api_version} is not support by this version of zabbixapi") end @auth_hash = auth end