1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2025-06-29 10:30:23 +02:00

gem: support date format used by OpenVPN 2.5

- smooth fallback
This commit is contained in:
cn
2022-01-18 01:56:49 +01:00
committed by Christian Nicolai
parent 528709c895
commit 9ad59194bd
4 changed files with 19 additions and 0 deletions

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