This commit is contained in:
Alexandre
2020-12-15 06:55:56 +01:00
committed by GitHub
parent b74e099d68
commit 8a5e635e79

View File

@@ -31,6 +31,9 @@ CONFIG=$(bashio::jq "${CONFIG}" ".\"bind-address-ipv4\"=\"0.0.0.0\"")
echo "${CONFIG}" > /share/transmission/settings.json
# Adapt UDP
if ! bashio::fs.file_exists '/etc/sysctl.conf'; then
echo "{}" > /etc/sysctl.conf
fi
SYSCTL=$(</etc/sysctl.conf)
SYSCTL=$(bashio::jq "${SYSCTL}" ".\"net.core.rmem_max\"=\"4194304")
SYSCTL=$(bashio::jq "${SYSCTL}" ".\"net.core.wmem_max\"=\"1048576")