Skip to content

Commit

Permalink
[INLONG-11632][SDK] The manager address was mistakenly truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
gosonzhang committed Jan 3, 2025
1 parent f0a79bc commit 72a18dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down

0 comments on commit 72a18dd

Please sign in to comment.