From 973c6dd479b11906ad833fdd33add4d695c1d53a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 11 Aug 2017 20:54:46 +0200 Subject: [PATCH] gluon-mesh-batman-adv: fix radvd start with dns.servers, but without next_node.ip config --- .../gluon-mesh-batman-adv/luasrc/lib/gluon/radvd/arguments | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/gluon-mesh-batman-adv/luasrc/lib/gluon/radvd/arguments b/package/gluon-mesh-batman-adv/luasrc/lib/gluon/radvd/arguments index 83a49453..36ac3c2d 100755 --- a/package/gluon-mesh-batman-adv/luasrc/lib/gluon/radvd/arguments +++ b/package/gluon-mesh-batman-adv/luasrc/lib/gluon/radvd/arguments @@ -1,6 +1,9 @@ #!/usr/bin/lua + local site = require "gluon.site_config" + io.write("-i local-node -p " .. site.prefix6) -if site.dns and site.dns.servers then + +if site.dns and site.dns.servers and site.next_node and site.next_node.ip6 then io.write(" --rdnss " .. site.next_node.ip6) end