AdGuardHome: change web port to 3001
This commit is contained in:
parent
01e9e1ac9a
commit
f1dbdd12f6
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 = " <input type=\"button\" value=\" " .. translate("Open Web Interface") .. " \" onclick=\"window.open('http://'+window.location.hostname+':" .. trport .. "')\"/>"
|
||||
|
||||
@ -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地址"
|
||||
|
||||
@ -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 &
|
||||
|
||||
Loading…
Reference in New Issue
Block a user