Bug 24585 - поддержка ipv6
Summary: поддержка ipv6
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libvhttpd (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Mikhail Efremov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-17 11:39 MSK by barabashka
Modified: 2019-02-11 19:30 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description barabashka 2010-11-17 11:39:46 MSK
На системах с enable ipv6, в /var/log/ahttpd/access.log вместо ip-адреса клиента обнаруживается нечто вида "::c00:0:0:0". Связано с неверным получением значения remote_addr в libvhttpd.

Для себя оставил только ipv4 в lib/socket.c

--- a/vhttpd/lib/socket.c
+++ b/vhttpd/lib/socket.c
@@ -105,7 +105,7 @@ create_inet_socket (const char *addr, const char *service, int flags)
     RUNTIME_ERROR ("service is not specified");
 
   memset (&hints, 0, sizeof (struct addrinfo));
-  hints.ai_family = AF_UNSPEC;
+  hints.ai_family = AF_INET;
   hints.ai_socktype = SOCK_STREAM;
   hints.ai_flags = AI_PASSIVE;
   hints.ai_protocol = 0;
Comment 1 Mikhail Efremov 2019-02-11 19:30:35 MSK
С версии 0.7.3-alt1 IPv6 используется корректно.