소스 검색

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,6 +53,11 @@ function block_firefox_telemetry {
53 53
     # to be on the safe side
54 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 61
     if grep "$FIREFOX_TELEMETRY_IP" /etc/firewall.conf; then
57 62
         return
58 63
     fi