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:
@ -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
|
||||
|
Reference in New Issue
Block a user