-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check modules before use, add reject-netflix-ipv6 module
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
modules/reject-netflix-ipv6/files/etc/dnsmasq.d/netflix.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 禁止奈飞解析IPV6地址 | ||
server=/netflix.com/# | ||
address=/netflix.com/:: | ||
server=/netflix.net/# | ||
address=/netflix.net/:: | ||
server=/nflxext.com/# | ||
address=/nflxext.com/:: | ||
server=/nflximg.net/# | ||
address=/nflximg.net/:: | ||
server=/nflxvideo.net/# | ||
address=/nflxvideo.net/:: |
1 change: 1 addition & 0 deletions
1
modules/reject-netflix-ipv6/files/etc/uci-defaults/99-reject-netflix-ipv6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo "conf-dir=/etc/dnsmasq.d" >> /etc/dnsmasq.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if [ -f /etc/dropbear/authorized_key ]; then | ||
chmod 644 /etc/dropbear/authorized_keys | ||
fi |