Ignore:
Timestamp:
Feb 1, 2010, 11:52:46 PM (12 years ago)
Author:
livings124
Message:

add a convenience function for determining if an address is an IP address, and when picking a favicon in the Mac UI's tracker tab, use the full IP address when applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r10044 r10069  
    4141#include "ConvertUTF.h"
    4242#include "list.h"
     43#include "net.h"
    4344#include "utils.h"
    4445#include "platform.h"
     
    931932
    932933    return tr_httpParseURL( url, -1, NULL, NULL, NULL ) == 0;
     934}
     935
     936tr_bool tr_addressIsIP( const char * address )
     937{
     938    tr_address tempAddr;
     939    return tr_pton(address, &tempAddr) != NULL;
    933940}
    934941
Note: See TracChangeset for help on using the changeset viewer.