adguardhome: increase UDP send/receive buffers
authorGeorge Sapkin <[email protected]>
Wed, 26 Mar 2025 02:29:13 +0000 (04:29 +0200)
committerTianling Shen <[email protected]>
Fri, 4 Apr 2025 18:36:26 +0000 (02:36 +0800)
Link: https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes
Signed-off-by: George Sapkin <[email protected]>
net/adguardhome/Makefile
net/adguardhome/files/adguardhome.sysctl [new file with mode: 0644]

index 463710e5ec719a0f97af83e1967b1b2b647f473c..beeefa0d025c7eaff0e10dbb91857bf39edeaae1 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adguardhome
 PKG_VERSION:=0.107.59
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/AdGuardHome/tar.gz/v$(PKG_VERSION)?
@@ -78,6 +78,9 @@ define Package/adguardhome/install
 
        $(INSTALL_DIR) $(1)/etc/config
        $(INSTALL_DATA) ./files/adguardhome.config $(1)/etc/config/adguardhome
+
+       $(INSTALL_DIR) $(1)/etc/sysctl.d
+       $(INSTALL_CONF) ./files/adguardhome.sysctl $(1)/etc/sysctl.d/50-adguardhome.conf
 endef
 
 $(eval $(call Download,adguardhome-frontend))
diff --git a/net/adguardhome/files/adguardhome.sysctl b/net/adguardhome/files/adguardhome.sysctl
new file mode 100644 (file)
index 0000000..dfc1698
--- /dev/null
@@ -0,0 +1,3 @@
+# quic-go expects larger UDP send/receive buffers
+net.core.rmem_max = 7500000
+net.core.wmem_max = 7500000