Commit 74e6520b authored by Kasalehlia's avatar Kasalehlia

radvd: use range from /tmp/range6 instead of site

parent 0cae549d
......@@ -2,8 +2,13 @@
local site = require "gluon.site"
io.write("-i local-node -p " .. site.prefix6())
local f = io.open("/tmp/range6","r")
if f then
local range6 = f:read('*a')
f:close()
io.write("-i local-node -p " .. range6)
if site.dns.servers() and site.next_node.ip6() then
io.write(" --rdnss " .. site.next_node.ip6())
if site.dns.servers() and site.next_node.ip6() then
io.write(" --rdnss " .. site.next_node.ip6())
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment