mirror of
https://github.com/garywill/linux-router.git
synced 2025-11-09 00:44:03 +01:00
fix _cleanup() didn't judge NO_DNSMASQ
This commit is contained in:
parent
f31006f401
commit
90dc5fdd8d
@ -688,7 +688,10 @@ _cleanup() {
|
||||
iptables -w -t nat -D PREROUTING -s ${GATEWAY%.*}.0/24 -d ${GATEWAY} \
|
||||
-p udp -m udp --dport 53 -j REDIRECT --to-ports $DNS_PORT
|
||||
fi
|
||||
iptables -w -D INPUT -i ${SUBNET_IFACE} -p udp -m udp --dport 67 -j ACCEPT
|
||||
|
||||
if [[ $NO_DNSMASQ -eq 0 ]]; then
|
||||
iptables -w -D INPUT -i ${SUBNET_IFACE} -p udp -m udp --dport 67 -j ACCEPT
|
||||
fi
|
||||
|
||||
ip link set down dev ${AP_IFACE}
|
||||
ip addr flush ${AP_IFACE}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user