aboutsummaryrefslogtreecommitdiffstats
path: root/local.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--local.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/local.c b/local.c
index 56d589d..8cae710 100644
--- a/local.c
+++ b/local.c
@@ -51,13 +51,10 @@ writeLocalCookie()
Str
localCookie()
{
- char hostname[256];
-
if (Local_cookie)
return Local_cookie;
- gethostname(hostname, 256);
srand48((long)New(char) + (long)time(NULL));
- Local_cookie = Sprintf("%ld@%s", lrand48(), hostname);
+ Local_cookie = Sprintf("%ld@%s", lrand48(), HostName ? HostName : "localhost");
return Local_cookie;
}