You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2022/07/27 01:53:21 UTC

[incubator-eventmesh] branch master updated: fix valid url bug

This is an automated email from the ASF dual-hosted git repository.

mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new a3080a1b fix valid url bug
     new 3db33517 Merge pull request #1039 from zmt-Eason/dev_zmt
a3080a1b is described below

commit a3080a1b755fbe170c18a4621e72d881e1b3bf01
Author: zmt <zm...@163.com>
AuthorDate: Fri Jul 22 23:08:35 2022 +0800

    fix valid url bug
---
 .../src/main/java/org/apache/eventmesh/common/utils/IPUtils.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java b/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java
index e477ea40..2ee98dae 100644
--- a/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java
+++ b/eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/IPUtils.java
@@ -201,9 +201,9 @@ public class IPUtils {
             return false;
         }
         if (ipAddress.isIPv4()) {
-            return isReservedIp(ipAddress, ipV4ReservedAddrs);
+            return !isReservedIp(ipAddress, ipV4ReservedAddrs);
         } else {
-            return isReservedIp(ipAddress, ipV6ReservedAddrs);
+            return !isReservedIp(ipAddress, ipV6ReservedAddrs);
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org