Skip to content

Commit

Permalink
📝 docs: only detect private ip in port mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cy948 authored Feb 4, 2025
1 parent d00d75d commit cc08844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ section_configurate_host() {
if [ -z "$HOST" ]; then
HOST=$(hostname -I | awk '{print $1}')
# If the host is a private ip and the deploy mode is port mode
if [[ "$DEPLOY_MODE" == "1" ]] || [[ "$HOST" == "192.168."* ]] || [[ "$HOST" == "172."* ]] || [[ "$HOST" == "10."* ]]; then
if [[ "$DEPLOY_MODE" == "1" ]] && ([[ "$HOST" == "192.168."* ]] || [[ "$HOST" == "172."* ]] || [[ "$HOST" == "10."* ]]); then
echo $(show_message "tips_private_ip_detected")
fi
fi
Expand Down

0 comments on commit cc08844

Please sign in to comment.