瀏覽代碼

Recreate firewall to remove RELATED

Bob Mottram 8 年之前
父節點
當前提交
c565f37033
沒有帳戶連結到提交者的電子郵件
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone 查看文件

@@ -4091,6 +4091,10 @@ function time_synchronisation {
4091 4091
 }
4092 4092
 
4093 4093
 function configure_firewall {
4094
+	if grep -q "RELATED" /etc/firewall.conf; then
4095
+		# recreate the firewall to remove RELATED
4096
+		sed -i "/firewall/d" $COMPLETION_FILE
4097
+	fi
4094 4098
 	if grep -Fxq "configure_firewall" $COMPLETION_FILE; then
4095 4099
 		return
4096 4100
 	fi