gem: support date format used by OpenVPN 2.5

- smooth fallback
This commit is contained in:
cn authored and Christian Nicolai committed 2022-01-18 17:07:33 +01:00
1 parent 528709c895
commit 9ad59194bd
4 files changed
+19

No files matched your search

+5
View File
@@ -16,6 +16,11 @@ def status_v2
OpenVPNStatusWeb::Parser::V2.new.parse_status_log text
end
def status_2_5_v2
text = File.binread('examples/status2_5.v2')
OpenVPNStatusWeb::Parser::V2.new.parse_status_log text
end
def status_v3
text = File.binread('examples/status.v3')
OpenVPNStatusWeb::Parser::V3.new.parse_status_log text