From fe2048e4dfeaecf2b492555bc7d80422a5c0450d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 26 Dec 2017 21:07:36 +0100 Subject: [PATCH] gluon-core: firewall: coding style Wrap long lines. --- .../lib/gluon/upgrade/140-firewall-rules | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/140-firewall-rules b/package/gluon-core/luasrc/lib/gluon/upgrade/140-firewall-rules index 803cf6b4..86ab0b53 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/140-firewall-rules +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/140-firewall-rules @@ -41,7 +41,19 @@ for _, zone in ipairs ({ 'mesh', 'local_client' } ) do uci:section('firewall', 'rule', zone .. '_ICMPv6_in', { src = zone, proto = 'icmp', - icmp_type = {'echo-request', 'echo-reply', 'destination-unreachable', 'packet-too-big', 'time-exceeded', 'bad-header', 'unknown-header-type', 'router-solicitation', 'neighbour-solicitation', 'router-advertisement', 'neighbour-advertisement', }, + icmp_type = { + 'echo-request', + 'echo-reply', + 'destination-unreachable', + 'packet-too-big', + 'time-exceeded', + 'bad-header', + 'unknown-header-type', + 'router-solicitation', + 'neighbour-solicitation', + 'router-advertisement', + 'neighbour-advertisement', + }, limit = '1000/sec', family = 'ipv6', target = 'ACCEPT', @@ -50,7 +62,19 @@ for _, zone in ipairs ({ 'mesh', 'local_client' } ) do uci:section('firewall', 'rule', zone .. '_ICMPv6_out', { dest = zone, proto = 'icmp', - icmp_type = {'echo-request', 'echo-reply', 'destination-unreachable', 'packet-too-big', 'time-exceeded', 'bad-header', 'unknown-header-type', 'router-solicitation', 'neighbour-solicitation', 'router-advertisement', 'neighbour-advertisement' }, + icmp_type = { + 'echo-request', + 'echo-reply', + 'destination-unreachable', + 'packet-too-big', + 'time-exceeded', + 'bad-header', + 'unknown-header-type', + 'router-solicitation', + 'neighbour-solicitation', + 'router-advertisement', + 'neighbour-advertisement', + }, limit = '1000/sec', family = 'ipv6', target = 'ACCEPT',