mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2024-12-22 12:54:24 +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
|
class ModernStateless
|
||||||
def self.parse_status_log(text, sep)
|
def self.parse_status_log(text, sep)
|
||||||
status = Status.new
|
status = Status.new
|
||||||
|
status.client_list_headers = []
|
||||||
status.client_list = []
|
status.client_list = []
|
||||||
|
status.routing_table_headers = []
|
||||||
status.routing_table = []
|
status.routing_table = []
|
||||||
status.global_stats = []
|
status.global_stats = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user