[
https://issues.apache.org/jira/browse/SCB-518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16454006#comment-16454006
]
ASF GitHub Bot commented on SCB-518:
------------------------------------
weichao666 commented on a change in pull request #676: [SCB-518] ServiceCenter
ip address need to config default port
URL:
https://github.com/apache/incubator-servicecomb-java-chassis/pull/676#discussion_r184383269
##########
File path:
service-registry/src/main/java/org/apache/servicecomb/serviceregistry/config/ServiceRegistryConfig.java
##########
@@ -133,10 +131,8 @@ public boolean isSsl() {
uriList.forEach(anUriList -> {
try {
URI uri = new URI(anUriList);
- StringBuilder sb = new StringBuilder(uri.getHost());
- sb.append(':').append(uri.getPort() < 0 ? PROTOCOL_HTTP_PORT :
uri.getPort());
this.ssl = uri.getScheme().startsWith("https");
- ipPortList.add(NetUtils.parseIpPort(sb.toString()));
+ ipPortList.add(NetUtils.parseIpPort(uri.getScheme(),
uri.getAuthority()));
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> ServiceCenter ip address need to config default port
> ----------------------------------------------------
>
> Key: SCB-518
> URL: https://issues.apache.org/jira/browse/SCB-518
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Java-Chassis
> Reporter: WeiChao
> Assignee: WeiChao
> Priority: Major
>
> for http/https, the default ports are 80 and 443. if port is not configured,
> the default port needs to be used. this simplifies the configuration.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)