dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lexburner (GitHub) <git...@apache.org>
Subject [GitHub] [incubator-dubbo] lexburner commented on issue #3770: 从2.7.0升级到2.7.1发现的BUG
Date Wed, 03 Apr 2019 07:03:33 GMT
dubbo 2.7.1 add an ipv4 check to avoid local site address:
```
public boolean isSiteLocalAddress() {
        // refer to RFC 1918
        // 10/8 prefix
        // 172.16/12 prefix
        // 192.168/16 prefix
        int address = holder().getAddress();
        return (((address >>> 24) & 0xFF) == 10)
            || ((((address >>> 24) & 0xFF) == 172)
                && (((address >>> 16) & 0xF0) == 16))
            || ((((address >>> 24) & 0xFF) == 192)
                && (((address >>> 16) & 0xFF) == 168));
    }
```
I am not sure this change is suitable, but maybe this change bring your probelm.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3770 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
Mime
View raw message