fix: improve IPv6 compatibility in containers and PHP AIO interface

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/c71fba87-d463-4682-9cb3-abb659b2ca40

Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-28 19:10:13 +00:00
committed by GitHub
parent 50643afd6a
commit 3abbbfbc2b
6 changed files with 60 additions and 9 deletions

View File

@@ -4,4 +4,4 @@ if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
set -x
fi
nc -z 127.0.0.1 1234 || exit 1
nc -z 127.0.0.1 1234 || nc -z ::1 1234 || exit 1

View File

@@ -58,13 +58,21 @@ extensionaudio = .m4a
extensionvideo = .mp4"
fi
# Detect IPv6 availability to choose the right listen address
RECORDING_LISTEN="0.0.0.0:1234"
if ! grep -q "1" /sys/module/ipv6/parameters/disable 2>/dev/null \
&& ! grep -q "1" /proc/sys/net/ipv6/conf/all/disable_ipv6 2>/dev/null \
&& ! grep -q "1" /proc/sys/net/ipv6/conf/default/disable_ipv6 2>/dev/null; then
RECORDING_LISTEN="[::]:1234"
fi
cat << RECORDING_CONF > "/conf/recording.conf"
[logs]
# 30 means Warning
level = ${TALK_RECORDING_LOG_LEVEL}
[http]
listen = 0.0.0.0:1234
listen = ${RECORDING_LISTEN}
[backend]
allowall = ${ALLOW_ALL}