healchow commented on code in PR #5677: URL: https://github.com/apache/inlong/pull/5677#discussion_r953790079
########## inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/AgentUtils.java: ########## @@ -348,6 +349,10 @@ public static String getmValue(String addictiveAttr) { * Check agent ip from manager */ public static String fetchLocalIp() { + if (AgentConfiguration.getAgentConf().hasKey(CUSTOM_FIXED_IP) && StringUtils Review Comment: Suggested changing to: ``` if (AgentConfiguration.getAgentConf().hasKey(CUSTOM_FIXED_IP) && StringUtils.isNoneBlank(AgentConfiguration.getAgentConf().get(CUSTOM_FIXED_IP))) { ``` -- 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-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org