Merge pull request #2744 from AiyionPrime/lua-indentation
lua indentation
This commit is contained in:
commit
28f3eb741a
@ -23,6 +23,8 @@ indent_size = 2
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.lua]
|
||||
|
||||
[*.md]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
@ -4,8 +4,7 @@ local uci = require('simple-uci').cursor()
|
||||
|
||||
-- Allow incoming respondd replies to queries on WAN
|
||||
-- If the query was via multicast, the response isn't matched by --state RELATED
|
||||
uci:section('firewall', 'rule', 'wan_respondd_reply',
|
||||
{
|
||||
uci:section('firewall', 'rule', 'wan_respondd_reply', {
|
||||
name = 'wan_respondd_reply',
|
||||
src = 'wan',
|
||||
src_ip = 'fe80::/64',
|
||||
@ -13,11 +12,9 @@ uci:section('firewall', 'rule', 'wan_respondd_reply',
|
||||
dest_port = '32768:61000', -- see /proc/sys/net/ipv4/ip_local_port_range
|
||||
proto = 'udp',
|
||||
target = 'ACCEPT',
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
uci:section('firewall', 'rule', 'mesh_respondd_reply',
|
||||
{
|
||||
uci:section('firewall', 'rule', 'mesh_respondd_reply', {
|
||||
name = 'mesh_respondd_reply',
|
||||
src = 'mesh',
|
||||
src_ip = 'fe80::/64',
|
||||
@ -25,7 +22,6 @@ uci:section('firewall', 'rule', 'mesh_respondd_reply',
|
||||
dest_port = '32768:61000', -- see /proc/sys/net/ipv4/ip_local_port_range
|
||||
proto = 'udp',
|
||||
target = 'ACCEPT',
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
uci:save('firewall')
|
||||
|
@ -1,12 +1,5 @@
|
||||
--[[
|
||||
Copyright 2013 Nils Schneider <nils@nilsschneider.net>
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
]]--
|
||||
-- SPDX-FileCopyrightText: 2013 Nils Schneider <nils@nilsschneider.net>
|
||||
-- SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
local uci = require("simple-uci").cursor()
|
||||
local autoupdater = uci:get_first("autoupdater", "autoupdater")
|
||||
|
Loading…
Reference in New Issue
Block a user