mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2025-08-08 08:33:59 +02:00
Use a status object
This commit is contained in:
@@ -21,7 +21,11 @@ module OpenVPNStatusWeb
|
||||
end
|
||||
end
|
||||
|
||||
[client_list[2..-1], routing_table[1..-1], global_stats]
|
||||
status = Status.new
|
||||
status.client_list = client_list[2..-1]
|
||||
status.routing_table = routing_table[1..-1]
|
||||
status.global_stats = global_stats
|
||||
status
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user