Only append to firewall list if needed
This commit is contained in:
parent
e9c47c397e
commit
e6e7711f65
|
@ -146,7 +146,9 @@ function firewall_enable_vpn {
|
||||||
iptables -A OUTPUT -o tun+ -j ACCEPT
|
iptables -A OUTPUT -o tun+ -j ACCEPT
|
||||||
save_firewall_settings
|
save_firewall_settings
|
||||||
|
|
||||||
echo "VPN=1194" >> $FIREWALL_CONFIG
|
if ! grep -q "VPN=" $FIREWALL_CONFIG; then
|
||||||
|
echo "VPN=1194" >> $FIREWALL_CONFIG
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_firewall {
|
function configure_firewall {
|
||||||
|
|
Loading…
Reference in New Issue