From 53b606550083be56d54687ba52d825b3f7bf627c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 8 Aug 2017 13:52:24 +0200 Subject: [PATCH] gluon-ebtables-source-filter: use new gluon.site library to avoid 'or {}' syntax --- .../files/lib/gluon/ebtables/110-local-forward-allow-ipv6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/gluon-ebtables-source-filter/files/lib/gluon/ebtables/110-local-forward-allow-ipv6 b/package/gluon-ebtables-source-filter/files/lib/gluon/ebtables/110-local-forward-allow-ipv6 index 9b2d1147..6be0de70 100644 --- a/package/gluon-ebtables-source-filter/files/lib/gluon/ebtables/110-local-forward-allow-ipv6 +++ b/package/gluon-ebtables-source-filter/files/lib/gluon/ebtables/110-local-forward-allow-ipv6 @@ -1,9 +1,9 @@ -site = require('gluon.site_config') +site = require('gluon.site') rule('LOCAL_FORWARD -p IPv6 --ip6-src fe80::/64 -j RETURN') rule('LOCAL_FORWARD -p IPv6 --ip6-src ::/128 --ip6-proto ipv6-icmp -j RETURN') -rule('LOCAL_FORWARD -p IPv6 --ip6-src ' .. site.prefix6 .. ' -j RETURN') +rule('LOCAL_FORWARD -p IPv6 --ip6-src ' .. site.prefix6() .. ' -j RETURN') -for _, prefix in ipairs(site.extra_prefixes6 or {}) do +for _, prefix in ipairs(site.extra_prefixes6({})) do rule('LOCAL_FORWARD -p IPv6 --ip6-src ' .. prefix .. ' -j RETURN') end