luci-app-mosdns: fix mosdns service increase buffer size

* daemon.err mosdns[7923]: 2023/05/03 00:46:35 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details.
This commit is contained in:
sbwml 2023-05-03 01:10:12 +08:00
parent 6452b77097
commit 1ef4c6a5c6
2 changed files with 14 additions and 1 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-mosdns PKG_NAME:=luci-app-mosdns
PKG_VERSION:=1.5.3 PKG_VERSION:=1.5.4
PKG_RELEASE:=1 PKG_RELEASE:=1
LUCI_TITLE:=LuCI Support for mosdns LUCI_TITLE:=LuCI Support for mosdns
@ -15,6 +15,14 @@ define Package/$(PKG_NAME)/conffiles
/etc/mosdns/rule /etc/mosdns/rule
endef endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
sysctl -p /etc/sysctl.d/20-mosdns-buffer-increase.conf
exit 0
}
endef
include $(TOPDIR)/feeds/luci/luci.mk include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature # call BuildPackage - OpenWrt buildroot signature

View File

@ -0,0 +1,5 @@
# Do not edit, changes to this file will be lost on upgrades
# /etc/sysctl.conf can be used to customize sysctl settings
net.core.rmem_max=4194304
net.core.wmem_max=4194304