cjdns: support the supernodes feature (#884)
[feed/routing.git] / luci-app-cjdns / luasrc / model / cbi / cjdns / peering.lua
index 2b1fc1be95e2682826e5cbebcf977c514f106404..3526afe03f2766814d337c9ed50182a1d4446ce2 100644 (file)
@@ -70,4 +70,13 @@ eth_peers:option(Value, "address", translate("MAC address")).datatype = "macaddr
 eth_peers:option(Value, "public_key", translate("Public key"))
 eth_peers:option(Value, "password", translate("Password"))
 
+-- Supernodes
+supernodes = m:section(TypedSection, "supernodes", translate("List of Supernodes"),
+  translate("If none are specified they'll be taken from your peers"))
+supernodes.anonymous = true
+supernodes.addremove = true
+supernodes.template  = "cbi/tblsection"
+
+supernodes:option(Value, "public_key", translate("Public Key")).size = 55
+
 return m