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/08/24 13:17:45 UTC

[GitHub] [inlong] healchow commented on a diff in pull request #5677: [INLONG-5675][Agent] Support custom fixed ip for Agent

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-unsubscribe@inlong.apache.org

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