You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/11/23 02:50:04 UTC

[GitHub] [inlong] chestnut-c commented on a diff in pull request #6605: [INLONG-6604][DataProxy] Fix can not get the local IP in the docker container

chestnut-c commented on code in PR #6605:
URL: https://github.com/apache/inlong/pull/6605#discussion_r1029980708


##########
inlong-dataproxy/dataproxy-docker/dataproxy-docker.sh:
##########
@@ -17,7 +17,7 @@
 #
 
 file_path=$(cd "$(dirname "$0")"/../;pwd)
-local_ip=$(ifconfig | grep inet | grep -v inet6 | grep -v "127.0.0.1" | awk '{print $2}' | grep -v "30.*")
+local_ip=$(ifconfig | grep inet | grep -v inet6 | grep -v "127.0.0.1" | awk '{print $2}' | grep -v "^30.*")
 # config

Review Comment:
   > It is necessary to supplement the IP filling rules here for the convenience of subsequent people, because if an environment uses the address of 30.xxx.xxx.xxx, they will have similar errors
   
   Ok, I'll add some necessary explanatory notes.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org