mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
feat: block qqpatch.gtimg.cn by resolve it to 127.0.0.1
This commit is contained in:
@@ -8,4 +8,9 @@
|
|||||||
# dynamically update /etc/hosts for testing
|
# dynamically update /etc/hosts for testing
|
||||||
# Note that changes made in this way will be discarded when switching configurations.
|
# Note that changes made in this way will be discarded when switching configurations.
|
||||||
environment.etc.hosts.mode = "0644";
|
environment.etc.hosts.mode = "0644";
|
||||||
|
|
||||||
|
networking.hosts."127.0.0.1" = [
|
||||||
|
# Block this domain to prevent QQ from auto-updating.
|
||||||
|
"qqpatch.gtimg.cn"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user