AdGuardHome: change web port to 3001

This commit is contained in:
CN_SZTL 2019-08-20 22:52:53 +08:00
parent 01e9e1ac9a
commit f1dbdd12f6
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
5 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ At least 25G HDD<br>
## Install the necessary packages
```bash
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint lua50 lua5.1 lua5.2
```
## Clone the source

View File

@ -1,5 +1,5 @@
bind_host: 0.0.0.0
bind_port: 3000
bind_port: 3001
auth_name: AdGuardHome
auth_pass: AdGuardHome
language: zh-cn

View File

@ -1,6 +1,6 @@
local m,s,o
local SYS = require "luci.sys"
local trport = 3000
local trport = 3001
local button = ""
if luci.sys.call("pidof AdGuardHome >/dev/null") == 0 then
button = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"button\" value=\" " .. translate("Open Web Interface") .. " \" onclick=\"window.open('http://'+window.location.hostname+':" .. trport .. "')\"/>"

View File

@ -65,7 +65,7 @@ msgid "dnsmasq killqqad"
msgstr "dnsmasq去广告"
msgid "AdGuardHome After setting up, shut down DNS acceleration normally and save configuration file"
msgstr "AdGuardHome设置完后正常关闭dns加速即可保存配置文件.AdGuardHome管理页面IP:3000 管理账号密码AdGuardHome"
msgstr "AdGuardHome设置完后正常关闭dns加速即可保存配置文件.AdGuardHome管理页面IP:3001 管理账号密码AdGuardHome"
msgid "Filter AAAA"
msgstr "忽略域名的IPv6地址"

View File

@ -238,7 +238,7 @@ start_service(){
elif [ $dnscache_enable = "2" ]; then
start_dnsforwarder
elif [ $dnscache_enable = "3" ]; then
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome -h ${lan_addr} -p 3000 >/dev/null 2>&1 &
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome -h ${lan_addr} -p 3001 >/dev/null 2>&1 &
fi
change_dns
nohup /usr/share/dnscache/dnscache-while.sh > /var/log/dnscache.file 2>&1 &