<%# LuCI - Lua Configuration Interface Copyright 2013 Manuel Munz Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -%> <% local i = 1 if luci.http.formvalue("status") == "1" then local rv = {} for name, data in pairs(hosts) do rv[#rv+1] = { name = name, ip = data.ip, port = data.port, uptime = data.uptime, protocol = data.protocol, reachable = data.reachable, udp = data.udp_confirmed, validkey = data.validkey } end luci.http.prepare_content("application/json") luci.http.write_json(rv) return end %> <%+header%>

<%:Tinc Verbindungen zum ffa Netzwerk%>

<% if status.up ~= "1" then %>
Der Tinc Prozess läuft nicht. Wurde Tinc schon eingerichtet?
<% end %>
Diese übersicht zeigt alle konfigurierten Tinc Verbindungen <% local i = 1 for name, data in pairs(hosts) do for _, v in ipairs({ 'reachable', 'validkey', 'udp_confirmed'}) do if data[v] == "1" then data[v] = ' .. v .. ' end if data[v] == "0" then data[v] = '.. v .. ' end end %> <% i = ((i % 2) + 1) end %>
Name IP Port Online seit Protokoll Erreichbar UDP Keys gültig
<%=name%> <%=data.ip%> <%=data.port%> <%=data.uptime%> <%=data.protocol%> <%=data.reachable%> <%=data.udp_confirmed%> <%=data.validkey%>

<%+footer%>