Skip to content

Commit

Permalink
fix ip for dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Sep 17, 2024
1 parent 0aa7122 commit ef4385d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/serve
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ if [ -z $APP_HOST ]; then
fi
done

if [ -z $APP_HOST ]; then
APP_HOST=$(hostname -I 2>/dev/null | awk '{print $1}')
fi

if [ -z $APP_HOST ]; then
APP_HOST=$(hostname -i 2>/dev/null)
fi
Expand Down
4 changes: 4 additions & 0 deletions dev/start
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef4385d

Please sign in to comment.