Changeset d4efddf


Ignore:
Timestamp:
2010-04-07T02:39:20Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3e57660
Parents:
33b306e
Message:

Unset the IPV6_V6ONLY sockctl so listening on IPv6 will automatically also
listen on IPv4 again. This should close #583 (and apparently also fix this
assumption on many non-Linux systems).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bitlbee.c

    r33b306e rd4efddf  
    7070                        continue;
    7171
     72#ifdef IPV6_V6ONLY             
     73                if( res->ai_family == AF_INET6 )
     74                {
     75                        i = 0;
     76                        setsockopt( global.listen_socket, IPPROTO_IPV6, IPV6_V6ONLY,
     77                                    (char *) &i, sizeof( i ) );
     78                }
     79#endif
     80
    7281                /* TIME_WAIT (?) sucks.. */
    7382                i = 1;
     
    8089                        return( -1 );
    8190                }
    82 
    8391                break;
    8492        }
Note: See TracChangeset for help on using the changeset viewer.