<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>24585</bug_id>
          
          <creation_ts>2010-11-17 11:39:46 +0300</creation_ts>
          <short_desc>поддержка ipv6</short_desc>
          <delta_ts>2019-02-11 19:30:35 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>libvhttpd</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="barabashka">barabashka</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>manowar</cc>
    
    <cc>sem</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115414</commentid>
    <comment_count>0</comment_count>
    <who name="barabashka">barabashka</who>
    <bug_when>2010-11-17 11:39:46 +0300</bug_when>
    <thetext>На системах с enable ipv6, в /var/log/ahttpd/access.log вместо ip-адреса клиента обнаруживается нечто вида &quot;::c00:0:0:0&quot;. Связано с неверным получением значения 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 (&quot;service is not specified&quot;);
 
   memset (&amp;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;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178458</commentid>
    <comment_count>1</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2019-02-11 19:30:35 +0300</bug_when>
    <thetext>С версии 0.7.3-alt1 IPv6 используется корректно.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>