浏览代码

Additional firefox telemetry blocking

Bob Mottram 7 年前
父节点
当前提交
c8fe0145a1
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      src/freedombone-utils-firewall

+ 5
- 0
src/freedombone-utils-firewall 查看文件

53
     # to be on the safe side
53
     # to be on the safe side
54
     # Within firefox source code see submit_telemetry_data.py
54
     # Within firefox source code see submit_telemetry_data.py
55
 
55
 
56
+    if ! grep 'telemetry.mozilla' /etc/hosts; then
57
+	echo '127.0.0.1  telemetry.mozilla.org' >> /etc/hosts
58
+	echo '127.0.0.1  incoming.telemetry.mozilla.org' >> /etc/hosts
59
+    fi
60
+        
56
     if grep "$FIREFOX_TELEMETRY_IP" /etc/firewall.conf; then
61
     if grep "$FIREFOX_TELEMETRY_IP" /etc/firewall.conf; then
57
         return
62
         return
58
     fi
63
     fi