Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
static int is_host_local(const char* host)
{
char hnbuf[256]="";
if (!host || (*host)) return 1;
if (!host || (!*host)) return 1;
gethostname(hnbuf, sizeof(hnbuf));
return (!strcasecmp(host,hnbuf) || !strcasecmp(host, "localhost"));