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:
parent
2a9bacf196
commit
eb2bb4d632
@ -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 = []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user