dnsmasq: code alignment

This commit is contained in:
ZiMing Mo 2022-05-29 02:25:28 +08:00
parent 4cb3afae73
commit 8b954cf179
No known key found for this signature in database
GPG Key ID: 1BED2E3A77AE5ECF

View File

@ -1189,14 +1189,14 @@ dnsmasq_start()
config_get_bool dns_redirect "$cfg" dns_redirect 0
config_get dns_port "$cfg" port 53
if [ "$dns_redirect" = 1 ]; then
cat > /tmp/dnsmasq-dns-redirect.nft <<EOF
table inet dnsmasq {
chain prerouting {
type nat hook prerouting priority -105; policy accept;
meta nfproto {ipv4, ipv6} udp dport 53 counter redirect to :$dns_port comment "DNSMASQ";
}
}
EOF
cat <<-EOF > /tmp/dnsmasq-dns-redirect.nft
table inet dnsmasq {
chain prerouting {
type nat hook prerouting priority -105; policy accept;
meta nfproto {ipv4, ipv6} udp dport 53 counter redirect to :$dns_port comment "DNSMASQ";
}
}
EOF
nft -f /tmp/dnsmasq-dns-redirect.nft
fi
}