mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
fixed regex for influxdb version
This commit is contained in:
parent
2bd509fa33
commit
77d5fd9706
1 changed files with 1 additions and 1 deletions
|
|
@ -1530,7 +1530,7 @@ local function getInfluxdbVersion(url, username, password)
|
|||
|
||||
local content = res.CONTENT or ""
|
||||
-- case-insensitive match as HAProxy transforms headers to lowercase (see #3964)
|
||||
return string.match(content:lower(), "\nx%-influxdb%-version: v([%d|%.]+)")
|
||||
return string.match(content:lower(), "\nx%-influxdb%-version: v?([%d|%.]+)")
|
||||
end
|
||||
|
||||
function driver:getInfluxdbVersion()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue