Skip to content

Commit c7d2568

Browse files
committed
added ipv6 loopback address to invalid endpoints list
1 parent aaabe66 commit c7d2568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/org/apache/cloudstack/config/ApiServiceConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ApiServiceConfiguration implements Configurable {
3838

3939
public static void validateEndpointUrl() {
4040
String csUrl = getApiServletPathValue();
41-
if (StringUtils.isBlank(csUrl) || StringUtils.containsAny(csUrl, "localhost", "127.0.0.1")) {
41+
if (StringUtils.isBlank(csUrl) || StringUtils.containsAny(csUrl, "localhost", "127.0.0.1", "[::1]")) {
4242
LOGGER.error("Global setting [{}] cannot contain localhost or be blank. Current value: {}", ApiServletPath.key(), csUrl);
4343
throw new InvalidParameterValueException("Unable to complete this operation. Contact your cloud admin.");
4444
}

0 commit comments

Comments
 (0)