Skip to content

Commit 436e745

Browse files
committed
Fix spacing in generated nftables.conf
1 parent ee14898 commit 436e745

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data/scripts/entry.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,18 @@ if is_enabled "$KILL_SWITCH" ; then
121121

122122
if [[ $address =~ $ip_regex ]]; then
123123
printf '%s\n' \
124-
"add rule inet killswitch outgoing oifname eth0 ip daddr $address $protocol dport $port accept" '' >> $nftables_config_file
124+
"add rule inet killswitch outgoing oifname eth0 ip daddr $address $protocol dport $port accept" >> $nftables_config_file
125125
else
126126
for ip in $(dig -4 +short "$address"); do
127127
printf '%s\n' \
128-
"add rule inet killswitch outgoing oifname eth0 ip daddr $ip $protocol dport $port accept" '' >> $nftables_config_file
128+
"add rule inet killswitch outgoing oifname eth0 ip daddr $ip $protocol dport $port accept" >> $nftables_config_file
129129
printf "%s %s\n" "$ip" "$address" >> /etc/hosts
130130
done
131131
fi
132132
done <<< "$remotes"
133133

134134
printf '%s\n' \
135-
'# allow traffic over the VPN interface' \
135+
'' '# allow traffic over the VPN interface' \
136136
"add rule inet killswitch incoming iifname tun0 accept" \
137137
"add rule inet killswitch outgoing oifname tun0 accept" >> $nftables_config_file
138138

0 commit comments

Comments
 (0)