Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10 from revverse/patch-1
Browse files Browse the repository at this point in the history
Logical bug
  • Loading branch information
BartVerc authored Apr 3, 2018
2 parents 8221d6d + 5307c3c commit 0faf6b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openvpn_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0faf6b0

Please sign in to comment.