1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2024-11-17 06:56:13 +01:00

gem: initialize new status attributes with default values

- prevents 'undefined method each_with_index for nil:NilClass' errors
This commit is contained in:
cn 2022-01-18 23:17:42 +01:00
parent 2a9bacf196
commit eb2bb4d632

View File

@ -5,7 +5,9 @@ module OpenVPNStatusWeb
class ModernStateless
def self.parse_status_log(text, sep)
status = Status.new
status.client_list_headers = []
status.client_list = []
status.routing_table_headers = []
status.routing_table = []
status.global_stats = []