mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 11:20:15 +00:00
fix(ufw): Remove space before commit
Remove the before commit on ufw rules fix #1607 fix #1620
This commit is contained in:
parent
202c173dd7
commit
955f268db2
1 changed files with 2 additions and 2 deletions
|
@ -3143,7 +3143,7 @@ confNetwork() {
|
||||||
sed_pattern="${sed_pattern} -j MASQUERADE"
|
sed_pattern="${sed_pattern} -j MASQUERADE"
|
||||||
sed_pattern="${sed_pattern} -m comment"
|
sed_pattern="${sed_pattern} -m comment"
|
||||||
sed_pattern="${sed_pattern} --comment ${VPN}-nat-rule\n"
|
sed_pattern="${sed_pattern} --comment ${VPN}-nat-rule\n"
|
||||||
sed_pattern="${sed_pattern} COMMIT\n"
|
sed_pattern="${sed_pattern}COMMIT\n"
|
||||||
${SUDO} sed "${sed_pattern}" -i /etc/ufw/before.rules
|
${SUDO} sed "${sed_pattern}" -i /etc/ufw/before.rules
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -3173,7 +3173,7 @@ confNetwork() {
|
||||||
sed_pattern="${sed_pattern} -j MASQUERADE"
|
sed_pattern="${sed_pattern} -j MASQUERADE"
|
||||||
sed_pattern="${sed_pattern} -m comment"
|
sed_pattern="${sed_pattern} -m comment"
|
||||||
sed_pattern="${sed_pattern} --comment ${VPN}-nat-rule\n"
|
sed_pattern="${sed_pattern} --comment ${VPN}-nat-rule\n"
|
||||||
sed_pattern="${sed_pattern} COMMIT\n"
|
sed_pattern="${sed_pattern}COMMIT\n"
|
||||||
${SUDO} sed "${sed_pattern}" -i /etc/ufw/before6.rules
|
${SUDO} sed "${sed_pattern}" -i /etc/ufw/before6.rules
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue