diff options
author | Peter Anvin <hpa@tazenda.sc.orionmulti.com> | 2005-09-28 17:26:44 -0700 |
---|---|---|
committer | Peter Anvin <hpa@tazenda.sc.orionmulti.com> | 2005-09-28 17:26:44 -0700 |
commit | 6573faff34eb002535843bbb59365be4ad58a120 (patch) | |
tree | f476ddac94143e9173245295837f723a0c6fd9a3 /connect.c | |
parent | 918e723204651252e5a823481cc8450e498a45f9 (diff) | |
download | git-6573faff34eb002535843bbb59365be4ad58a120.tar.gz |
NO_IPV6 support for git daemon
Diffstat (limited to 'connect.c')
-rw-r--r-- | connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -397,7 +397,7 @@ static int git_tcp_connect(int fd[2], const char *prog, char *host, char *path) memset(&sa, 0, sizeof sa); sa.sin_family = he->h_addrtype; - sa.sin_port = nport; + sa.sin_port = htons(nport); memcpy(&sa.sin_addr, ap, he->h_length); if (connect(sockfd, (struct sockaddr *)&sa, sizeof sa) < 0) { |