fix ip for dev.

This commit is contained in:
Miroslav Šedivý
2024-09-17 19:24:50 +02:00
parent 0aa712278f
commit ef4385d471
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -17,6 +17,10 @@ if [ -z $NEKO_ROOMS_NAT1TO1 ]; then
fi
done
if [ -z $NEKO_ROOMS_NAT1TO1 ]; then
NEKO_ROOMS_NAT1TO1=$(hostname -I 2>/dev/null | awk '{print $1}')
fi
if [ -z $NEKO_ROOMS_NAT1TO1 ]; then
NEKO_ROOMS_NAT1TO1=$(hostname -i 2>/dev/null)
fi