diff --git a/dev/serve b/dev/serve index d4cb3689..ec27c9b9 100755 --- a/dev/serve +++ b/dev/serve @@ -13,6 +13,10 @@ if [ -z $NEKO_HOST ]; then fi done + if [ -z $NEKO_HOST ]; then + NEKO_HOST=$(hostname -I 2>/dev/null | awk '{print $1}') + fi + if [ -z $NEKO_HOST ]; then NEKO_HOST=$(hostname -i 2>/dev/null) fi