Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
410154425 authored Jul 20, 2022
1 parent 150ba46 commit 058fcea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mode.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#使用前需关闭私人dns,不可用wap接入点,AdHome后台管理地址http://127.0.0.1:3000,用户名/密码root (若面具页面显示运行中,但无法打开后台,则可能是系统被精简web服务相关导致),本机流量数据或wifi都支持过滤,以下所有配置参数修改即时生效,无需重启。
#使用前需关闭私人dns,不可用wap接入点,AdHome后台管理地址http://127.0.0.1:3000,用户名/密码root (若面具页面显示运行中,但无法打开后台,则可能是系统被精简web服务相关导致),本机流量数据或wifi都支持过滤,AdHome后台有数据变化代表模块生效,以下所有配置参数修改即时生效,无需重启。

#模式选择:模式几就填几,模式1在切换网络时可能会有3秒时间不过滤,模式2或3则不会,各有优缺点,详细看下面介绍。
mode=1
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=AdGuardHome
name=AdGuardHome模块
version=20220530
versionCode=2022053000
version=20220720
versionCode=2022072000
author=top大佬(酷安)
description=[ - ] 通过DNS层面过滤广告、防DNS劫持,使用前请先详读mode.conf文件,使用前需关闭私人dns,不可用wap接入点,支持订阅过滤规则,可兼容VPN、免模块、翻模块、校园网、热点共享等特殊使用环境,AdHome后台管理地址http://127.0.0.1:3000,用户名/密码root,模式切换配置文件:/data/adb/modules/AdGuardHome/mode.conf。
#by topdalao
1 change: 1 addition & 0 deletions testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ echo "$port_yaml"
echo "$start"
pgrep 'AdGuardHome'
echo "系统架构:$uname_m ,hosts:$hosts_byte 字节 ,head:$topdalao_H"
settings get global private_dns_mode
echo ---------- 端口 ------------
netstat -anp | egrep 'AdGuardHome'
echo --------- 设备信息 ----------
Expand Down
6 changes: 5 additions & 1 deletion topdalao
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ if [ "$port_testing" != "0" ]; then
fi
fi
fi
private_dns_mode="$(settings get global private_dns_mode)"
if [ "$private_dns_mode" = "opportunistic" -o "$private_dns_mode" = "hostname" ]; then
settings put global private_dns_mode off
fi
NetworkAgentInfo="$(dumpsys connectivity | egrep 'NetworkAgentInfo{' | egrep -v 'extra: ims')"
NetworkAgentInfo_MW="$(echo "$NetworkAgentInfo" | egrep 'NetworkAgentInfo{' | sed -n 's/extra:.*//g;p' | egrep -v 'VPN' | wc -l)"
if [ "$NetworkAgentInfo_MW" = "0" ]; then
Expand Down Expand Up @@ -198,4 +202,4 @@ if [ -n "$ipv6OUTPUT" ]; then
fi
fi
#by topdalao
#version=2022053000
#version=2022072000
2 changes: 1 addition & 1 deletion update.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
AdGuardHome_update,http://z23r562938.iask.in/Adguardhome_magisk,[2022053000]
AdGuardHome_update,http://z23r562938.iask.in/Adguardhome_magisk,[2022072000]
网盘:https://topdalao.lanzouo.com/b02c3cvof
密码:1111

0 comments on commit 058fcea

Please sign in to comment.