diff options
Diffstat (limited to 'local.c')
-rw-r--r-- | local.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; } |