View | Details | Raw Unified
Collapse All | Expand All

(-) esound-0.2.29/esdlib.c (-1 / +1 lines)
 Lines 558-564    Link Here 
static int is_host_local(const char* host) 
static int is_host_local(const char* host) 
{
{
    char hnbuf[256]="";
    char hnbuf[256]="";
    if (!host || (!*host)) return 1;
    if (!host || (*host)) return 1;
    gethostname(hnbuf, sizeof(hnbuf));
    gethostname(hnbuf, sizeof(hnbuf));
    return (!strcasecmp(host,hnbuf) || !strcasecmp(host, "localhost"));
    return (!strcasecmp(host,hnbuf) || !strcasecmp(host, "localhost"));