1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2025-09-28 21:52:05 +02:00

2 Commits

Author SHA1 Message Date
cn
ea7b3a947c gem: release 3.2.1 2022-01-18 23:18:00 +01:00
cn
eb2bb4d632 gem: initialize new status attributes with default values
- prevents 'undefined method each_with_index for nil:NilClass' errors
2022-01-18 23:17:42 +01:00
3 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ FROM alpine:3.13
EXPOSE 8080 EXPOSE 8080
ENV VERSION=3.2.0 ENV VERSION=3.2.1
RUN apk --no-cache add openssl ca-certificates && \ RUN apk --no-cache add openssl ca-certificates && \
apk --no-cache add ruby ruby-etc ruby-webrick && \ apk --no-cache add ruby ruby-etc ruby-webrick && \

View File

@@ -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 = []

View File

@@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module OpenVPNStatusWeb module OpenVPNStatusWeb
VERSION = '3.2.0' VERSION = '3.2.1'
end end