support ipv6

This commit is contained in:
j 2020-09-21 15:03:27 +02:00
parent 2779d8d099
commit 5bbb6ca195

View file

@ -186,7 +186,7 @@ fi
# if pandora is running inside a container, expose backend at port 2620 # if pandora is running inside a container, expose backend at port 2620
if [ "$LXC" == "yes" ]; then if [ "$LXC" == "yes" ]; then
sed -i s/127.0.0.1/0.0.0.0/g /srv/pandora/pandora/gunicorn_config.py sed -i "s/127.0.0.1/[::]/g" /srv/pandora/pandora/gunicorn_config.py
echo "WEBSOCKET_ADDRESS = \"0.0.0.0\"" >> /srv/pandora/pandora/local_settings.py echo "WEBSOCKET_ADDRESS = \"0.0.0.0\"" >> /srv/pandora/pandora/local_settings.py
fi fi
/srv/pandora/ctl start /srv/pandora/ctl start