diff --git a/inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/ProxyClientConfig.java b/inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/ProxyClientConfig.java index 6a80fbf21c..1d03ee5b3a 100644 --- a/inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/ProxyClientConfig.java +++ b/inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/ProxyClientConfig.java @@ -528,9 +528,9 @@ private void checkAndParseAddress(String managerAddress) throws ProxysdkExceptio String hostPortInfo; if (managerAddress.startsWith(ConfigConstants.HTTPS)) { this.visitManagerByHttp = false; - hostPortInfo = managerAddress.substring(ConfigConstants.HTTPS.length() + 1); + hostPortInfo = managerAddress.substring(ConfigConstants.HTTPS.length()); } else { - hostPortInfo = managerAddress.substring(ConfigConstants.HTTP.length() + 1); + hostPortInfo = managerAddress.substring(ConfigConstants.HTTP.length()); } if (StringUtils.isBlank(hostPortInfo)) { throw new ProxysdkException("managerAddress must include host:port info!");