Ignore:
Timestamp:
Jan 16, 2009, 11:17:31 PM (12 years ago)
Author:
charles
Message:

(trunk libT) fix IPv6 reported & solved by erdgeist. add debugging message to help track down any future problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r7721 r7730  
    478478    if( addr->type == TR_AF_INET && IN_MULTICAST( htonl( addr->addr.addr4.s_addr ) ) )
    479479        return -EINVAL;
    480     if( addr->type == TR_AF_INET6 && ( addr->addr.addr6.s6_addr[0] & 0xff ) )
     480    if( addr->type == TR_AF_INET6 && ( addr->addr.addr6.s6_addr[0] == 0xff ) )
    481481        return -EINVAL;
    482482
    483     if( ( s = createSocket( ( addr->type == TR_AF_INET ? AF_INET : AF_INET6 ),
    484                             type ) ) < 0 )
     483    if( ( s = createSocket( ( addr->type == TR_AF_INET ? AF_INET : AF_INET6 ), type ) ) < 0 )
    485484        return s;
    486485
Note: See TracChangeset for help on using the changeset viewer.