mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 21:42:59 +03:00
ipt/ipt6 quote
This commit is contained in:
parent
230eb234e7
commit
34f1ca1192
@ -39,11 +39,11 @@ network_find_wan6_all()
|
|||||||
|
|
||||||
ipt()
|
ipt()
|
||||||
{
|
{
|
||||||
iptables -C $@ 2>/dev/null || iptables -I $@
|
iptables -C "$@" 2>/dev/null || iptables -I "$@"
|
||||||
}
|
}
|
||||||
ipt6()
|
ipt6()
|
||||||
{
|
{
|
||||||
ip6tables -C $@ 2>/dev/null || ip6tables -I $@
|
ip6tables -C "$@" 2>/dev/null || ip6tables -I "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# there's no route_localnet for ipv6
|
# there's no route_localnet for ipv6
|
||||||
|
@ -53,11 +53,11 @@ on_off_function()
|
|||||||
|
|
||||||
ipt()
|
ipt()
|
||||||
{
|
{
|
||||||
iptables -C $@ 2>/dev/null || iptables -I $@
|
iptables -C "$@" 2>/dev/null || iptables -I "$@"
|
||||||
}
|
}
|
||||||
ipt_del()
|
ipt_del()
|
||||||
{
|
{
|
||||||
iptables -C $@ 2>/dev/null && iptables -D $@
|
iptables -C "$@" 2>/dev/null && iptables -D "$@"
|
||||||
}
|
}
|
||||||
ipt_add_del()
|
ipt_add_del()
|
||||||
{
|
{
|
||||||
@ -65,11 +65,11 @@ ipt_add_del()
|
|||||||
}
|
}
|
||||||
ipt6()
|
ipt6()
|
||||||
{
|
{
|
||||||
ip6tables -C $@ 2>/dev/null || ip6tables -I $@
|
ip6tables -C "$@" 2>/dev/null || ip6tables -I "$@"
|
||||||
}
|
}
|
||||||
ipt6_del()
|
ipt6_del()
|
||||||
{
|
{
|
||||||
ip6tables -C $@ 2>/dev/null && ip6tables -D $@
|
ip6tables -C "$@" 2>/dev/null && ip6tables -D "$@"
|
||||||
}
|
}
|
||||||
ipt6_add_del()
|
ipt6_add_del()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user