Changeset 7848


Ignore:
Timestamp:
Feb 8, 2009, 12:33:57 AM (12 years ago)
Author:
jhujhiti
Message:

(1.5x libT) backport r7842 as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5x/libtransmission/net.c

    r7847 r7848  
    544544
    545545#ifdef IPV6_V6ONLY
    546     if( retval = setsockopt( s, IPPROTO_IPV6, IPV6_V6ONLY, &optval,
    547                 sizeof( optval ) ) == -1 ) {
     546    if( addr->type == TR_AF_INET6 &&
     547        ( retval = setsockopt( s, IPPROTO_IPV6, IPV6_V6ONLY, &optval,
     548                             sizeof( optval ) ) ) == -1 ) {
    548549        /* the kernel may not support this. if not, ignore it */
    549550        if( errno != ENOPROTOOPT )
Note: See TracChangeset for help on using the changeset viewer.