wujimin commented on a change in pull request #960: [SCB-967] Support configed
IP send request
URL:
https://github.com/apache/incubator-servicecomb-java-chassis/pull/960#discussion_r226193728
##########
File path:
handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/LoadbalanceHandler.java
##########
@@ -167,6 +176,23 @@ private void preCheck() {
@Override
public void handle(Invocation invocation, AsyncResponse asyncResp) throws
Exception {
+ String endpointUri =
invocation.getLocalContext(SERVICECOMB_SERVER_ENDPOINT);
+ if (endpointUri != null) {
+ String endpointRule = "[a-z]+://.+";
Review comment:
URI will check this automatically?
----------------------------------------------------------------
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]
With regards,
Apache Git Services