We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a7642 commit fc4f5d1Copy full SHA for fc4f5d1
kubernetes/config/incluster_config.c
@@ -66,8 +66,7 @@ static int setBasePathInCluster(char **pBasePath)
66
67
int basePathSize = strlen(SERVICE_HTTPS_PREFIX) + strlen(service_host_env) + strlen(service_port_env) + 2 /* 1 for ':', 1 for '\0' */ ;
68
bool isIPv6 = false;
69
- if (strchr(service_host_env, ':') == NULL)
70
- {
+ if (strchr(service_host_env, ':') != NULL) {
71
isIPv6 = true;
72
// Takes into account the square brackets to escape the IP v6 address.
73
basePathSize += 2;
0 commit comments