Commits

Anonymous committed ce6f8e7

Fix git protocol connection 'port' override

It was broken by the IPv6 patches - we need to remove the ":" part from
the hostname for a successful name lookup.

  • Participants
  • Parent commits 5ba8844

Comments (0)

Files changed (1)

 		end = host;
 	colon = strchr(end, ':');
 
-	if (colon)
+	if (colon) {
+		*colon = 0;
 		port = colon + 1;
+	}
 
 	memset(&hints, 0, sizeof(hints));
 	hints.ai_socktype = SOCK_STREAM;