mirror of
https://github.com/wfg/docker-wireguard.git
synced 2025-12-20 00:15:42 +01:00
Add .editorconfig for shfmt
This commit is contained in:
5
.editorconfig
Normal file
5
.editorconfig
Normal file
@@ -0,0 +1,5 @@
|
||||
[[*.sh]]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
binary_next_line = true
|
||||
@@ -39,7 +39,7 @@ iptables --insert OUTPUT \
|
||||
local_docker_nets=()
|
||||
for ifname in $(ip -4 -json link show type veth | jq --raw-output '.[].ifname'); do
|
||||
for net in $(ip -4 -json address show dev "${ifname}" | jq --raw-output '.[].addr_info[] | "\(.local)/\(.prefixlen)"'); do
|
||||
local_docker_nets+=( "${net}" )
|
||||
local_docker_nets+=("${net}")
|
||||
done
|
||||
done
|
||||
printf -v dest_nets '%s,' "${local_docker_nets[@]}"
|
||||
|
||||
Reference in New Issue
Block a user