Update 91-csrf.sh

This commit is contained in:
Alexandre
2024-03-06 14:30:57 +01:00
committed by GitHub
parent df8512a9be
commit 532a61bba2

View File

@@ -44,7 +44,7 @@ for url in "${urls[@]}"; do
if bashio::var.has_value "${url}"; then
if [[ "${url}" != "null" ]] && [[ "${url}" != "null.local" ]]; then
CSRF="https://${url}:${port},http://${url}:${port},https://${url},http://${url}",${CSRF}
if bashio::var.has_value "$(bashio::addon.port 80)"; then
if bashio::var.has_value "$(bashio::addon.port 9810)"; then
CSRF="https://${url}:${addon_port},http://${url}:${addon_port}",${CSRF}
fi
fi