diff options
author | William Fleurant <meshnet@protonmail.com> | 2022-06-20 22:31:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 22:31:44 +0300 |
commit | d705f7989080f38feba4329e5f24d2c85f99a902 (patch) | |
tree | 59378da80baac422aa292e911f3f6cfbf2ccac42 /cjdns | |
parent | 217330bb5e7c17cc2e9f116f8a853f2e5fb86697 (diff) |
cjdns: support the supernodes feature (#884)
Signed-off-by: William Fleurant <meshnet@protonmail.com>
Diffstat (limited to 'cjdns')
-rw-r--r-- | cjdns/Makefile | 2 | ||||
-rw-r--r-- | cjdns/lua/cjdns/uci.lua | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cjdns/Makefile b/cjdns/Makefile index b926bc7..1f8592b 100644 --- a/cjdns/Makefile +++ b/cjdns/Makefile @@ -18,7 +18,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cjdns PKG_VERSION:=v21.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/cjdelisle/cjdns/tar.gz/$(PKG_NAME)-$(PKG_VERSION)? diff --git a/cjdns/lua/cjdns/uci.lua b/cjdns/lua/cjdns/uci.lua index f4716b7..d6b6633 100644 --- a/cjdns/lua/cjdns/uci.lua +++ b/cjdns/lua/cjdns/uci.lua @@ -53,6 +53,10 @@ function UCI.get() obj.router.interface.tunDevice = config.tun_device end + cursor:foreach("cjdns", "supernodes", function(supernodes) + table.insert(obj.router.supernodes, supernodes.public_key) + end) + for i,section in pairs(obj.security) do if type(section.seccomp) == "number" then obj.security[i].seccomp = tonumber(config.seccomp) |