diff --git a/luci-app-mosdns/Makefile b/luci-app-mosdns/Makefile index f76731f..13bb628 100644 --- a/luci-app-mosdns/Makefile +++ b/luci-app-mosdns/Makefile @@ -15,14 +15,6 @@ define Package/$(PKG_NAME)/conffiles /etc/mosdns/rule 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 # call BuildPackage - OpenWrt buildroot signature diff --git a/luci-app-mosdns/root/etc/init.d/mosdns b/luci-app-mosdns/root/etc/init.d/mosdns index f683781..6de695e 100755 --- a/luci-app-mosdns/root/etc/init.d/mosdns +++ b/luci-app-mosdns/root/etc/init.d/mosdns @@ -188,6 +188,7 @@ start_service() { v2dat_dump >> $($MOSDNS_SCRIPT logfile) 2>&1 fi 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 user root procd_set_param stdout 1 diff --git a/luci-app-mosdns/root/etc/sysctl.d/20-mosdns-buffer-increase.conf b/luci-app-mosdns/root/etc/sysctl.d/20-mosdns-buffer-increase.conf deleted file mode 100644 index 18f2527..0000000 --- a/luci-app-mosdns/root/etc/sysctl.d/20-mosdns-buffer-increase.conf +++ /dev/null @@ -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