luci-app-mosdns: disable quic-go receive buffer warning #137

This commit is contained in:
sbwml 2023-09-29 01:45:06 +08:00
parent c7ea65276c
commit 3078047cdb
3 changed files with 1 additions and 13 deletions

View File

@ -15,14 +15,6 @@ 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

@ -188,6 +188,7 @@ start_service() {
v2dat_dump >> $($MOSDNS_SCRIPT logfile) 2>&1 v2dat_dump >> $($MOSDNS_SCRIPT logfile) 2>&1
fi fi
procd_open_instance mosdns procd_open_instance mosdns
procd_set_param env QUIC_GO_DISABLE_RECEIVE_BUFFER_WARNING=true
procd_set_param command $PROG start -c "$CONF" procd_set_param command $PROG start -c "$CONF"
procd_set_param user root procd_set_param user root
procd_set_param stdout 1 procd_set_param stdout 1

View File

@ -1,5 +0,0 @@
# 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