提交 ce6f8e7e 编写于 作者: L Linus Torvalds

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.
上级 5ba88448
......@@ -119,8 +119,10 @@ static int git_tcp_connect(int fd[2], const char *prog, char *host, char *path)
end = host;
colon = strchr(end, ':');
if (colon)
if (colon) {
*colon = 0;
port = colon + 1;
}
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_STREAM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册