Skip to content

dubbo protocal host cannot support ipv6 format #4597

@ljywit

Description

@ljywit

I use IPV6 to configure protocal's host, like :
<dubbo:protocal host=":::" port="22660"/>
I startup application, system will validate the host and throw "IllegalStateException" by name's pattern. I think the host cannot be used by name pattern when use ipv6.

ProtocolConfig.java
public void setHost(String host) {
checkName(HOST_KEY, host);
this.host = host;
}

AbstractConfig.java.
protected static void checkName(String property, String value) {
checkProperty(property, value, MAX_LENGTH, PATTERN_NAME);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions