1
0
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:
cn
2013-05-03 18:30:34 +02:00
parent cd6e41fcfa
commit 438931f8a6
4 changed files with 18 additions and 6 deletions

View File

@@ -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