Logical bug

when CLIENT_LIST exist its only do numberConnectedClient++ and not execute metricsCollect
This commit is contained in:
Reverse authored and GitHub committed 2018-02-20 15:53:45 +02:00
1 parent 8221d6daf9
commit 5307c3c449
1 file changed
+3 -2
+3 -2
View File
@@ -198,9 +198,10 @@ func CollectServerStatusFromReader(statusPath string, file io.Reader, ch chan<-
statusPath)
} else if fields[0] == "TITLE" && len(fields) == 2 {
// OpenVPN version number.
} else if fields[0] == "CLIENT_LIST"{
numberConnectedClient ++
} else if header, ok := openvpnServerHeaders[fields[0]]; ok {
if fields[0] == "CLIENT_LIST"{
numberConnectedClient ++
}
// Entry that depends on a preceding HEADERS directive.
columnNames, ok := headersFound[fields[0]]
if !ok {