Skip to content
Snippets Groups Projects
Unverified Commit 53b60655 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

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

parent 12ec6ab2
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment