Skip to content

Commit 8c368fd

Browse files
author
Aaron Viehl
committed
Disable Multipath TCP
1 parent 84d92c8 commit 8c368fd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

update-adguardhome.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Description: This script updates AdGuardHome to the latest version.
88
# Thread: https://forum.gl-inet.com/t/how-to-update-adguard-home-testing/39398
99
# Author: Admon
10-
SCRIPT_VERSION="2025.06.20.01"
10+
SCRIPT_VERSION="2025.06.20.02"
1111
SCRIPT_NAME="update-adguardhome.sh"
1212
UPDATE_URL="https://raw.githubusercontent.com/Admonstrator/glinet-adguard-updater/main/update-adguardhome.sh"
1313
AGH_TINY_URL="https://github.com/Admonstrator/glinet-adguard-updater/releases/latest/download"
@@ -237,7 +237,10 @@ enable_querylog() {
237237
disable_multipath_tcp() {
238238
log "INFO" "Disabling multipath TCP ..."
239239
if ! grep -q 'procd_set_param env GODEBUG=multipathtcp=0' /etc/init.d/adguardhome; then
240-
sed -i '/procd_set_param stderr 1/a\procd_set_param env GODEBUG=multipathtcp=0' /etc/init.d/adguardhome
240+
sed -i '/procd_set_param stderr 1/a\ procd_set_param env GODEBUG=multipathtcp=0' /etc/init.d/adguardhome
241+
else
242+
log "INFO" "Multipath TCP is already disabled in /etc/init.d/adguardhome"
243+
return 0
241244
fi
242245
log "SUCCESS" "Multipath TCP is now disabled."
243246
log "INFO" "This is to prevent issues with AdGuard Home on GL.iNet routers."

0 commit comments

Comments
 (0)