mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
remove UDP error
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# ==============================================================================
|
||||
|
||||
declare CONFIG
|
||||
declare SYSCTL
|
||||
declare incomplete_bool
|
||||
declare download_dir
|
||||
declare incomplete_dir
|
||||
@@ -28,3 +29,9 @@ CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-host-whitelist-enabled\"=false")
|
||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"bind-address-ipv4\"=\"0.0.0.0\"")
|
||||
|
||||
echo "${CONFIG}" > /share/transmission/settings.json
|
||||
|
||||
# Adapt UDP
|
||||
SYSCTL=$(</etc/sysctl.conf)
|
||||
SYSCTL=$(bashio::jq "${SYSCTL}" ".\"net.core.rmem_max\"=\"4194304")
|
||||
SYSCTL=$(bashio::jq "${SYSCTL}" ".\"net.core.wmem_max\"=\"1048576")
|
||||
echo "${SYSCTL}" > /etc/sysctl.conf
|
||||
|
||||
Reference in New Issue
Block a user