gluon-ebtables-source-filter: use new gluon.site library to avoid 'or {}' syntax

This commit is contained in:
Matthias Schiffer 2017-08-08 13:52:24 +02:00
parent 12ec6ab2bc
commit 53b6065500
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
1 changed files with 3 additions and 3 deletions

View File

@ -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