update 2025-07-22 09:38:29
This commit is contained in:
parent
c8a3446532
commit
c302f688c7
@ -36,7 +36,7 @@ dellocaluse() {
|
|||||||
. /lib/functions/network.sh
|
. /lib/functions/network.sh
|
||||||
network_find_wan LOGICAL_WAN || exit 1
|
network_find_wan LOGICAL_WAN || exit 1
|
||||||
dns_list=$(ubus call network.interface.$LOGICAL_WAN status | jsonfilter -e '@["dns-server"]' | sed 's/[]["]//g' | sed 's/,/\n/g' | grep -oE '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b')
|
dns_list=$(ubus call network.interface.$LOGICAL_WAN status | jsonfilter -e '@["dns-server"]' | sed 's/[]["]//g' | sed 's/,/\n/g' | grep -oE '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b')
|
||||||
[ -z "$dns_list" ] && dns_list="223.5.5.5 119.29.29.29 180.76.76.76"
|
[ -z "$dns_list" ] && dns_list="119.29.29.29 180.76.76.76 223.5.5.5"
|
||||||
grep -v '^nameserver ' /etc/resolv.conf > /tmp/resolv.conf.new.daed 2>/dev/null
|
grep -v '^nameserver ' /etc/resolv.conf > /tmp/resolv.conf.new.daed 2>/dev/null
|
||||||
for dns in $dns_list; do
|
for dns in $dns_list; do
|
||||||
echo "nameserver $dns" >> /tmp/resolv.conf.new.daed
|
echo "nameserver $dns" >> /tmp/resolv.conf.new.daed
|
||||||
|
@ -60,93 +60,3 @@ gh-proxy.com
|
|||||||
gitmirror.com
|
gitmirror.com
|
||||||
ghfast.top
|
ghfast.top
|
||||||
|
|
||||||
|
|
||||||
# Synology ddns
|
|
||||||
account.synology.com
|
|
||||||
checkip.dyndns.org
|
|
||||||
checkip.synology.com
|
|
||||||
checkipv6.dyndns.org
|
|
||||||
checkipv6.synology.com
|
|
||||||
checkport.synology.com
|
|
||||||
ddns.synology.com
|
|
||||||
|
|
||||||
# google
|
|
||||||
dl.google.com
|
|
||||||
|
|
||||||
# github proxy
|
|
||||||
gh-proxy.com
|
|
||||||
gitmirror.com
|
|
||||||
ghfast.top
|
|
||||||
|
|
||||||
|
|
||||||
# Synology ddns
|
|
||||||
account.synology.com
|
|
||||||
checkip.dyndns.org
|
|
||||||
checkip.synology.com
|
|
||||||
checkipv6.dyndns.org
|
|
||||||
checkipv6.synology.com
|
|
||||||
checkport.synology.com
|
|
||||||
ddns.synology.com
|
|
||||||
|
|
||||||
# google
|
|
||||||
dl.google.com
|
|
||||||
|
|
||||||
# github proxy
|
|
||||||
gh-proxy.com
|
|
||||||
gitmirror.com
|
|
||||||
ghfast.top
|
|
||||||
|
|
||||||
|
|
||||||
# Synology ddns
|
|
||||||
account.synology.com
|
|
||||||
checkip.dyndns.org
|
|
||||||
checkip.synology.com
|
|
||||||
checkipv6.dyndns.org
|
|
||||||
checkipv6.synology.com
|
|
||||||
checkport.synology.com
|
|
||||||
ddns.synology.com
|
|
||||||
|
|
||||||
# google
|
|
||||||
dl.google.com
|
|
||||||
|
|
||||||
# github proxy
|
|
||||||
gh-proxy.com
|
|
||||||
gitmirror.com
|
|
||||||
ghfast.top
|
|
||||||
|
|
||||||
|
|
||||||
# Synology ddns
|
|
||||||
account.synology.com
|
|
||||||
checkip.dyndns.org
|
|
||||||
checkip.synology.com
|
|
||||||
checkipv6.dyndns.org
|
|
||||||
checkipv6.synology.com
|
|
||||||
checkport.synology.com
|
|
||||||
ddns.synology.com
|
|
||||||
|
|
||||||
# google
|
|
||||||
dl.google.com
|
|
||||||
|
|
||||||
# github proxy
|
|
||||||
gh-proxy.com
|
|
||||||
gitmirror.com
|
|
||||||
ghfast.top
|
|
||||||
|
|
||||||
|
|
||||||
# Synology ddns
|
|
||||||
account.synology.com
|
|
||||||
checkip.dyndns.org
|
|
||||||
checkip.synology.com
|
|
||||||
checkipv6.dyndns.org
|
|
||||||
checkipv6.synology.com
|
|
||||||
checkport.synology.com
|
|
||||||
ddns.synology.com
|
|
||||||
|
|
||||||
# google
|
|
||||||
dl.google.com
|
|
||||||
|
|
||||||
# github proxy
|
|
||||||
gh-proxy.com
|
|
||||||
gitmirror.com
|
|
||||||
ghfast.top
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user