Changeset 775


Ignore:
Timestamp:
Aug 14, 2006, 10:59:30 PM (15 years ago)
Author:
livings124
Message:

IP address in peer table

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/clients.c

    r773 r775  
    9494    {
    9595        if (id[0] != 0)
     96        {
    9697            asprintf( &ret, "unknown client (%c%c%c%c%c%c%c%c)",
    9798                  id[0], id[1], id[2], id[3], id[4], id[5], id[6], id[7] );
     99        }
    98100        else
     101        {
    99102            asprintf( &ret, "unknown client" );
     103        }
    100104    }
    101105
  • trunk/macosx/InfoWindowController.m

    r762 r775  
    452452        else if ([ident isEqualToString: @"DL From"])
    453453            return [[peer objectForKey: @"DL From"] boolValue] ? @"Y" : @"";
     454        else if ([ident isEqualToString: @"Client"])
     455            return [peer objectForKey: @"Client"];
    454456        else
    455             return [peer objectForKey: @"Client"];
     457            return [peer objectForKey: @"IP"];
    456458    }
    457459    else
  • trunk/macosx/Torrent.m

    r772 r775  
    529529       
    530530        [peerDics addObject: [NSDictionary dictionaryWithObjectsAndKeys:
     531            [NSString stringWithCString: (char *) peer.addr encoding: NSUTF8StringEncoding], @"IP",
    531532            [NSString stringWithCString: (char *) peer.client encoding: NSUTF8StringEncoding], @"Client",
    532533            [NSNumber numberWithBool: peer.isDownloading], @"UL To",
Note: See TracChangeset for help on using the changeset viewer.