Changeset 257 in Main for trunk/Server/server.c


Ignore:
Timestamp:
Oct 4, 2024, 2:34:27 PM (6 weeks ago)
Author:
Nishi
Message:

[release 2.04] can read mime.types from apache

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r255 r257  
    498498        struct sockaddr* sa = (struct sockaddr*)&addr;
    499499        getnameinfo(sa, sizeof(addr), address, 512, NULL, 0, NI_NUMERICHOST);
    500 #endif
    501         addrstr = inet_ntoa(addr.sin_addr);
    502         strcpy(address, addrstr);
    503         address[strlen(addrstr)] = 0;
     500#else
     501                addrstr = inet_ntoa(addr.sin_addr);
     502                strcpy(address, addrstr);
     503                address[strlen(addrstr)] = 0;
     504#endif
    504505#ifdef FREE_PTR
    505506        free(ptr);
Note: See TracChangeset for help on using the changeset viewer.