Skip to content

Commit 24c3940

Browse files
author
Greg Dubicki
committed
Merge branch 'master' of github.com:express42/zabbixapi
2 parents 394ceb9 + 3e4e73e commit 24c3940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zabbixapi/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(options = {})
5151
@proxy_port = @proxy_uri.port
5252
@proxy_user, @proxy_pass = @proxy_uri.userinfo.split(/:/) if @proxy_uri.userinfo
5353
end
54-
unless api_version =~ /(2\.4|3\.[02])\.\d+/
54+
unless api_version =~ /(2\.4|3\.[024]|4\.0)\.\d+/
5555
raise ApiError.new("Zabbix API version: #{api_version} is not support by this version of zabbixapi")
5656
end
5757
@auth_hash = auth

0 commit comments

Comments
 (0)