解决执行器回调URL不支持配置HTTPS时问题。

master
xuxueli 7 years ago
parent b1013d4c13
commit 822a01401a
  1. 4
      xxl-job-core/src/main/java/com/xxl/job/core/rpc/netcom/jetty/client/JettyClient.java

@ -21,8 +21,8 @@ public class JettyClient {
// reqURL
String reqURL = request.getServerAddress();
if (reqURL!=null && reqURL.toLowerCase().indexOf("http://")==-1) {
reqURL = "http://" + request.getServerAddress() + "/";
if (reqURL!=null && reqURL.toLowerCase().indexOf("http")==-1) {
reqURL = "http://" + request.getServerAddress() + "/"; // IP:PORT, need parse to url
}
// remote invoke

Loading…
Cancel
Save